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 +++ web/lang/en/submit_po.inc | 2 ++ web/lang/pl/submit_po.inc | 2 ++ 3 files changed, 7 insertions(+) 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."; + ?> -- cgit v1.2.3-54-g00ecf