summaryrefslogtreecommitdiffstats
path: root/web/html/pkgsubmit.php
diff options
context:
space:
mode:
authorswiergot <swiergot>2005-09-02 17:34:39 +0200
committerswiergot <swiergot>2005-09-02 17:34:39 +0200
commitd55ee42f8590755adc9a653e2fc55308e30d1a37 (patch)
treefcc1e2b8180edd572020ce68e92b8e917cf1fe12 /web/html/pkgsubmit.php
parent8f25d155b3b24b3d170278798048473c48206c2f (diff)
downloadaur-d55ee42f8590755adc9a653e2fc55308e30d1a37.tar.gz
aur-d55ee42f8590755adc9a653e2fc55308e30d1a37.tar.xz
closed #3127 with slight modification
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r--web/html/pkgsubmit.php3
1 files changed, 3 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();