Bug #1856 [NEW]: patch to verify version numbers on release upload

From: Date: Mon, 12 Jul 2004 15:46:47 +0000
Subject: Bug #1856 [NEW]: patch to verify version numbers on release upload
Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-2779@lists.php.net to get a copy of this message
From: cellog at php dot net Operating system: na PHP version: Irrelevant Package: Web Site Bug Type: Bug Bug description: patch to verify version numbers on release upload Description: ------------ I'm out of town and can't easily verify this patch. However, if it works, please commit it. Index: public_html/release-upload.php =================================================================== RCS file: /repository/pearweb/public_html/release-upload.php,v retrieving revision 1.39 diff -u -r1.39 release-upload.php --- public_html/release-upload.php 22 Jun 2004 04:00:37 -0000 1.39 +++ public_html/release-upload.php 12 Jul 2004 15:44:44 -0000 @@ -216,6 +216,12 @@ . 'You may want to correct your package.xml file:'); // XXX ADD MASSIVE SANITY CHECKS HERE + + $version = $info['version']; + if (!preg_match('/^\d+\.\d+\.\d+(?:[a-z]+\d*)?$/', $version)) { + report_error('Version must in format digit.digit.digit[lower-case alpha[digits]]', 'errors','ERRORS:<br />' + . 'You must correct your package.xml file:'); + } $check = array( 'summary', -- Edit bug report at http://pear.php.net/bugs/bug.php?id=1856&edit=1 --

« previous php.pear.webmaster (#2779) next »