fixed a small bug in the package submitting code that caused real error message being overwritten by unreal URL parsing error

This commit is contained in:
swiergot 2005-08-05 19:32:28 +00:00
parent ee664d26d6
commit cc5d55d5c3

View file

@ -295,10 +295,12 @@ if ($_COOKIE["AURSID"]) {
# Check for http:// or other protocol in url # Check for http:// or other protocol in url
# #
if (!error) {
$parsed_url = parse_url($pkgbuild['url']); $parsed_url = parse_url($pkgbuild['url']);
if (!$parsed_url['scheme']) { if (!$parsed_url['scheme']) {
$error = __("Package URL is missing a protocol (ie. http:// ,ftp://)"); $error = __("Package URL is missing a protocol (ie. http:// ,ftp://)");
} }
}
# Now, run through the pkgbuild array and do any $pkgname/$pkgver # Now, run through the pkgbuild array and do any $pkgname/$pkgver
# substituions. # substituions.