mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
committed patch from swiergot to allow package names starting with numbers
This commit is contained in:
parent
a00af12557
commit
ee2b2e2021
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ if ($_COOKIE["AURSID"]) {
|
||||||
$pkg_name = str_replace("'", "", $_REQUEST["pkgname"]);
|
$pkg_name = str_replace("'", "", $_REQUEST["pkgname"]);
|
||||||
$pkg_name = escapeshellarg($pkg_name);
|
$pkg_name = escapeshellarg($pkg_name);
|
||||||
$pkg_name = str_replace("'", "", $pkg_name); # get rid of single quotes
|
$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) {
|
if ($presult == FALSE || $presult <= 0) {
|
||||||
# FALSE => error processing regex, 0 => invalid characters
|
# FALSE => error processing regex, 0 => invalid characters
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Reference in a new issue