summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
authorswiergot <swiergot>2005-08-05 21:32:28 +0200
committerswiergot <swiergot>2005-08-05 21:32:28 +0200
commitcc5d55d5c33fbad2da55c2ab0cfa1de3f6f1dda9 (patch)
treefbe0dfbdbec8da005bc330e069e0063f5fdcbe7c /web/html
parentee664d26d6d1bc8db0df46cb5960100bd2510c9f (diff)
downloadaur-cc5d55d5c33fbad2da55c2ab0cfa1de3f6f1dda9.tar.gz
aur-cc5d55d5c33fbad2da55c2ab0cfa1de3f6f1dda9.tar.xz
fixed a small bug in the package submitting code that caused real error message being overwritten by unreal URL parsing error
Diffstat (limited to 'web/html')
-rw-r--r--web/html/pkgsubmit.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index e5498c42..e160571e 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -295,9 +295,11 @@ if ($_COOKIE["AURSID"]) {
# 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://)");
+ if (!error) {
+ $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