summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpjmattal <pjmattal>2005-08-02 06:34:32 +0000
committerpjmattal <pjmattal>2005-08-02 06:34:32 +0000
commitee2b2e20210abe7f6a62f49b55001be83a139142 (patch)
tree4fab4bc8b8257e9ecfabe749baa08579b93b65da
parenta00af12557efea78fd2cd321a4af58ce7a095c21 (diff)
downloadaurweb-ee2b2e20210abe7f6a62f49b55001be83a139142.tar.xz
committed patch from swiergot to allow package names starting with numbers
-rw-r--r--web/html/pkgsubmit.php2
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
#