silence parse_url on hostile input, need to get_app() for proc_run php location
This commit is contained in:
parent
f6788dc5f6
commit
1207bb1b55
2 changed files with 10 additions and 7 deletions
|
@ -84,7 +84,7 @@ function follow_post(&$a) {
|
|||
// Google doesn't use absolute url in profile photos
|
||||
|
||||
if((x($vcard,'photo')) && substr($vcard['photo'],0,1) == '/') {
|
||||
$h = parse_url($hcard);
|
||||
$h = @parse_url($hcard);
|
||||
if($h)
|
||||
$vcard['photo'] = $h['scheme'] . '://' . $h['host'] . $vcard['photo'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue