From ee2b2e20210abe7f6a62f49b55001be83a139142 Mon Sep 17 00:00:00 2001 From: pjmattal Date: Tue, 2 Aug 2005 06:34:32 +0000 Subject: committed patch from swiergot to allow package names starting with numbers --- web/html/pkgsubmit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/html') 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 # -- cgit v1.2.3-70-g09d2