mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01: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();
|
||||
|
|
|
@ -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.";
|
||||
|
||||
?>
|
|
@ -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.";
|
||||
|
||||
?>
|
||||
|
|
Loading…
Add table
Reference in a new issue