Set some defaults for parsed url.
This commit is contained in:
parent
612f56aa6c
commit
7c2aceed28
10
jsonld.php
10
jsonld.php
|
@ -267,8 +267,14 @@ function jsonld_parse_url($url) {
|
|||
$rval['path'] = '/';
|
||||
}
|
||||
}
|
||||
else if(!isset($rval['path'])) {
|
||||
$rval['path'] = '';
|
||||
else {
|
||||
$rval['host'] = '';
|
||||
if(!isset($rval['path'])) {
|
||||
$rval['path'] = '';
|
||||
}
|
||||
}
|
||||
if(!isset($rval['scheme'])) {
|
||||
$rval['scheme'] = '';
|
||||
}
|
||||
return $rval;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue