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

View file

@ -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.";
?>

View file

@ -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.";
?>