diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/html/pkgsubmit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 508120c4..a13a6746 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -297,7 +297,7 @@ if ($_COOKIE["AURSID"]): $depends = explode(" ", $new_pkgbuild['depends']); foreach ($depends as $dep) { $q = "INSERT INTO PackageDepends (PackageID, DepPkgID, DepCondition) VALUES ("; - $deppkgname = preg_replace("/[<>]?=.*/", "", $dep); + $deppkgname = preg_replace("/(<|<=|=|>=|>).*/", "", $dep); $depcondition = str_replace($deppkgname, "", $dep); if ($deppkgname == "#") { @@ -344,7 +344,7 @@ if ($_COOKIE["AURSID"]): $depends = explode(" ", $new_pkgbuild['depends']); foreach ($depends as $dep) { $q = "INSERT INTO PackageDepends (PackageID, DepPkgID, DepCondition) VALUES ("; - $deppkgname = preg_replace("/[<>]?=.*/", "", $dep); + $deppkgname = preg_replace("/(<|<=|=|>=|>).*/", "", $dep); $depcondition = str_replace($deppkgname, "", $dep); if ($deppkgname == "#") { |