silence parse_url on hostile input, need to get_app() for proc_run php location

This commit is contained in:
Friendika 2011-02-24 15:41:15 -08:00
commit 1207bb1b55
2 changed files with 10 additions and 7 deletions

View file

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