committed patch from swiergot to allow package names starting with numbers

This commit is contained in:
pjmattal 2005-08-02 06:34:32 +00:00
parent a00af12557
commit ee2b2e2021

View file

@ -30,7 +30,7 @@ if ($_COOKIE["AURSID"]) {
$pkg_name = str_replace("'", "", $_REQUEST["pkgname"]);
$pkg_name = escapeshellarg($pkg_name);
$pkg_name = str_replace("'", "", $pkg_name); # get rid of single quotes
$presult = preg_match("/^[a-z][a-z0-9_-]*$/", $pkg_name);
$presult = preg_match("/^[a-z0-9][a-z0-9_-]*$/", $pkg_name);
if ($presult == FALSE || $presult <= 0) {
# FALSE => error processing regex, 0 => invalid characters
#