From d55ee42f8590755adc9a653e2fc55308e30d1a37 Mon Sep 17 00:00:00 2001 From: swiergot Date: Fri, 2 Sep 2005 15:34:39 +0000 Subject: closed #3127 with slight modification --- web/html/pkgsubmit.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web/html') diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 99c01797..a76206e2 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -178,6 +178,9 @@ if ($_COOKIE["AURSID"]) { while ($f = $d->read()) { if ($f != "." && $f != "..") { $pkg_contents[$f] = filesize($f); + if (preg_match("/^(.*\.pkg\.tar\.gz|filelist)$/", $f)) { + $error = __("Binary packages and filelists are not allowed for upload."); + } } } $d->close(); -- cgit v1.2.3-24-g4f1b