summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web/html/pkgsubmit.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index 4faedd0..e56335d 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -292,8 +292,14 @@ if ($_COOKIE["AURSID"]) {
# performed. Examples: #md5sums == #sources?, md5sums of any
# included files match?, install scriptlet file exists?
#
-
-
+
+ # Check for http:// or other protocol in url
+ #
+ $parsed_url = parse_url($pkgbuild['url']);
+ if (!$parsed_url['scheme']) {
+ $error = __("Package URL is missing a protocol (ie. http:// ,ftp://)");
+ }
+
# Now, run through the pkgbuild array and do any $pkgname/$pkgver
# substituions.
#