summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-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)) {