diff options
author | swiergot <swiergot> | 2005-09-02 17:34:39 +0200 |
---|---|---|
committer | swiergot <swiergot> | 2005-09-02 17:34:39 +0200 |
commit | d55ee42f8590755adc9a653e2fc55308e30d1a37 (patch) | |
tree | fcc1e2b8180edd572020ce68e92b8e917cf1fe12 | |
parent | 8f25d155b3b24b3d170278798048473c48206c2f (diff) | |
download | aur-d55ee42f8590755adc9a653e2fc55308e30d1a37.tar.gz aur-d55ee42f8590755adc9a653e2fc55308e30d1a37.tar.xz |
closed #3127 with slight modification
-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 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(); diff --git a/web/lang/en/submit_po.inc b/web/lang/en/submit_po.inc index 37dc1767..ddaaa263 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 a328314b..b0dd9308 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."; + ?> |