mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Reject packages with subdirectories (fixes FS#22995).
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
743cffe7d1
commit
4b2b8afb8a
1 changed files with 3 additions and 0 deletions
|
@ -38,6 +38,9 @@ if ($_COOKIE["AURSID"]):
|
||||||
$pkgbuild_raw = $tar->extractInString($tar_file['filename']);
|
$pkgbuild_raw = $tar->extractInString($tar_file['filename']);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
elseif (preg_match('/^[^\/]+\/[^\/]+\//', $tar_file['filename'])) {
|
||||||
|
$error = __("Error - source tarball may not contain subdirectories.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($pkgbuild_raw)) {
|
if (empty($pkgbuild_raw)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue