mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
closed #3127 with slight modification
This commit is contained in:
parent
8f25d155b3
commit
d55ee42f85
3 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue