diff options
author | pjmattal <pjmattal> | 2005-08-02 06:34:32 +0000 |
---|---|---|
committer | pjmattal <pjmattal> | 2005-08-02 06:34:32 +0000 |
commit | ee2b2e20210abe7f6a62f49b55001be83a139142 (patch) | |
tree | 4fab4bc8b8257e9ecfabe749baa08579b93b65da /web/html | |
parent | a00af12557efea78fd2cd321a4af58ce7a095c21 (diff) | |
download | aurweb-ee2b2e20210abe7f6a62f49b55001be83a139142.tar.xz |
committed patch from swiergot to allow package names starting with numbers
Diffstat (limited to 'web/html')
-rw-r--r-- | web/html/pkgsubmit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index c71ad47..e5498c4 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -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 # |