diff options
-rw-r--r-- | web/html/pkgsubmit.php | 3 | ||||
-rw-r--r-- | web/lang/en/submit_po.inc | 2 | ||||
-rw-r--r-- | web/lang/pl/submit_po.inc | 2 |
3 files changed, 7 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(); diff --git a/web/lang/en/submit_po.inc b/web/lang/en/submit_po.inc index 37dc176..ddaaa26 100644 --- a/web/lang/en/submit_po.inc +++ b/web/lang/en/submit_po.inc @@ -89,4 +89,6 @@ $_t["en"]["Package URL is missing a protocol (ie. http:// ,ftp://)"] = "Package $_t["en"]["Could not re-tar"] = "Could not re-tar"; +$_t["en"]["Binary packages and filelists are not allowed for upload."] = "Binary packages and filelists are not allowed for upload."; + ?>
\ No newline at end of file diff --git a/web/lang/pl/submit_po.inc b/web/lang/pl/submit_po.inc index a328314..b0dd930 100644 --- a/web/lang/pl/submit_po.inc +++ b/web/lang/pl/submit_po.inc @@ -50,4 +50,6 @@ $_t["pl"]["Package URL is missing a protocol (ie. http:// ,ftp://)"] = "Adres UR $_t["pl"]["Could not re-tar"] = "Przepakowanie pakietu nie powiodło się."; +$_t["pl"]["Binary packages and filelists are not allowed for upload."] = "Nie można wysyłać pakietów binarnych i plików filelist."; + ?> |