pkgsubmit.php: Simplify package name validation
commit4bb6e8874237d6b81b46bbaf5726d6f15790594b
authorLukas Fleischer <archlinux@cryptocrack.de>
Tue, 5 Mar 2013 10:07:31 +0000 (5 11:07 +0100)
committerLukas Fleischer <archlinux@cryptocrack.de>
Tue, 5 Mar 2013 12:26:35 +0000 (5 13:26 +0100)
treefadd234032e46f7f23a157194a6c0c1740912f17
parent6dc61e7d9e87ad6821869dab61e5f005af2e0252
pkgsubmit.php: Simplify package name validation

Remove redundant filters -- single quotes are already removed in
$pkgbuild_new and we do not pass the package name to a shell
(additionally, the regular expression already checks for potentially
evil characters).

Also, move the $pkg_name extraction up to fix the split package check.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
web/html/pkgsubmit.php