Set some defaults for parsed url.

This commit is contained in:
Dave Longley 2013-02-08 15:51:19 -05:00
parent 612f56aa6c
commit 7c2aceed28
1 changed files with 8 additions and 2 deletions

View File

@ -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;
}