summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-02-21 19:19:53 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2011-02-21 19:19:53 +0100
commit4b2b8afb8aad83588cd9d0cf9af28acfb5d3bb74 (patch)
treef6d6faad255994d27710c0b09afe496a2b71659d
parent743cffe7d13d814e0d27d406c7f82656d6bf8c1b (diff)
downloadaur-4b2b8afb8aad83588cd9d0cf9af28acfb5d3bb74.tar.gz
aur-4b2b8afb8aad83588cd9d0cf9af28acfb5d3bb74.tar.xz
Reject packages with subdirectories (fixes FS#22995).
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r--web/html/pkgsubmit.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index ccbd35e7..df7c4671 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -38,6 +38,9 @@ if ($_COOKIE["AURSID"]):
$pkgbuild_raw = $tar->extractInString($tar_file['filename']);
break;
}
+ elseif (preg_match('/^[^\/]+\/[^\/]+\//', $tar_file['filename'])) {
+ $error = __("Error - source tarball may not contain subdirectories.");
+ }
}
if (empty($pkgbuild_raw)) {