mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
ee664d26d6
commit
cc5d55d5c3
1 changed files with 5 additions and 3 deletions
|
@ -295,9 +295,11 @@ if ($_COOKIE["AURSID"]) {
|
||||||
|
|
||||||
# Check for http:// or other protocol in url
|
# Check for http:// or other protocol in url
|
||||||
#
|
#
|
||||||
$parsed_url = parse_url($pkgbuild['url']);
|
if (!error) {
|
||||||
if (!$parsed_url['scheme']) {
|
$parsed_url = parse_url($pkgbuild['url']);
|
||||||
$error = __("Package URL is missing a protocol (ie. http:// ,ftp://)");
|
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
|
# Now, run through the pkgbuild array and do any $pkgname/$pkgver
|
||||||
|
|
Loading…
Add table
Reference in a new issue