summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/html/pkgsubmit.php3
-rw-r--r--web/lang/en/submit_po.inc2
-rw-r--r--web/lang/pl/submit_po.inc2
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.";
+
?>