closed #3127 with slight modification

This commit is contained in:
swiergot 2005-09-02 15:34:39 +00:00
parent 8f25d155b3
commit d55ee42f85
3 changed files with 7 additions and 0 deletions

View file

@ -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();