mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Added support for uploading files with '+' characters.
This commit is contained in:
parent
5e32d69d99
commit
18cfe569e0
1 changed files with 2 additions and 2 deletions
|
@ -36,8 +36,8 @@ if ($_COOKIE["AURSID"]) {
|
|||
|
||||
# Solves the problem when you try to submit PKGBUILD
|
||||
# that have the name with a period like (gstreamer0.10)
|
||||
# Added by: dsa <dsandrade@gmail.com>
|
||||
$presult = preg_match("/^[a-z0-9][a-z0-9\._-]*$/", $pkg_name);
|
||||
# Added support for packages with + characters like (mysql++).
|
||||
$presult = preg_match("/^[a-z0-9][a-z0-9\.+_-]*$/", $pkg_name);
|
||||
|
||||
if ($presult == FALSE || $presult <= 0) {
|
||||
# FALSE => error processing regex, 0 => invalid characters
|
||||
|
|
Loading…
Add table
Reference in a new issue