diff options
-rw-r--r-- | web/html/pkgsubmit.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index ccbd35e..df7c467 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)) { |