forked from friendica/php-json-ld
Set some defaults for parsed url.
This commit is contained in:
parent
612f56aa6c
commit
7c2aceed28
|
@ -267,9 +267,15 @@ function jsonld_parse_url($url) {
|
|||
$rval['path'] = '/';
|
||||
}
|
||||
}
|
||||
else if(!isset($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