normalise links before comparison (bug #431)

pull/56/head^2
friendica 2012-05-22 22:33:08 -07:00
parent 3926f5582d
commit e4b1489b14
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ function privacy_image_cache_init() {
*/
function privacy_image_cache_is_local_image($url) {
if ($url[0] == '/') return true;
$baseurl = get_app()->get_baseurl();
$baseurl = normalise_link(get_app()->get_baseurl());
$url = normalise_link($url);
return (substr($url, 0, strlen($baseurl)) == $baseurl);
}