aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/network.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/network.php b/include/network.php
index d37da05f7..baa8ec40d 100644
--- a/include/network.php
+++ b/include/network.php
@@ -1963,6 +1963,7 @@ function scrape_vcard($url) {
}
}
+ $ret['photo'] = (filter_var($ret['photo'], FILTER_VALIDATE_URL) ? $ret['photo'] : substr($ret['url'], 0, -1) . $ret['photo']);
return $ret;
}