mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Task #2838 - URL protocol checking to avoid broken links
This commit is contained in:
parent
a60eb05f13
commit
01be3a4893
1 changed files with 8 additions and 2 deletions
|
@ -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.
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue