summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorswiergot <swiergot>2005-09-02 15:34:39 +0000
committerswiergot <swiergot>2005-09-02 15:34:39 +0000
commitd55ee42f8590755adc9a653e2fc55308e30d1a37 (patch)
treefcc1e2b8180edd572020ce68e92b8e917cf1fe12 /web
parent8f25d155b3b24b3d170278798048473c48206c2f (diff)
closed #3127 with slight modification
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 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.";
+
?>