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

View file

@ -267,9 +267,15 @@ function jsonld_parse_url($url) {
$rval['path'] = '/'; $rval['path'] = '/';
} }
} }
else if(!isset($rval['path'])) { else {
$rval['host'] = '';
if(!isset($rval['path'])) {
$rval['path'] = ''; $rval['path'] = '';
} }
}
if(!isset($rval['scheme'])) {
$rval['scheme'] = '';
}
return $rval; return $rval;
} }