aboutsummaryrefslogtreecommitdiffstats
path: root/mod/follow.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-24 15:41:15 -0800
committerFriendika <info@friendika.com>2011-02-24 15:41:15 -0800
commit1207bb1b55f402074a73d9ff0221ff8c9a6a285a (patch)
tree25428c7b2da873cc7812520a29ef4c582a63712f /mod/follow.php
parentf6788dc5f670e852ea9e1be001892527e5ae76dd (diff)
downloadvolse-hubzilla-1207bb1b55f402074a73d9ff0221ff8c9a6a285a.tar.gz
volse-hubzilla-1207bb1b55f402074a73d9ff0221ff8c9a6a285a.tar.bz2
volse-hubzilla-1207bb1b55f402074a73d9ff0221ff8c9a6a285a.zip
silence parse_url on hostile input, need to get_app() for proc_run php location
Diffstat (limited to 'mod/follow.php')
-rw-r--r--mod/follow.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/follow.php b/mod/follow.php
index f3bd84669..689ae8232 100644
--- a/mod/follow.php
+++ b/mod/follow.php
@@ -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'];
}