summaryrefslogtreecommitdiffstats
path: root/web/html/pkgsubmit.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r--web/html/pkgsubmit.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index 99c0179..a76206e 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();