From e4b1489b14cf474c98156fbe781070f31083f854 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 22 May 2012 22:33:08 -0700 Subject: [PATCH] normalise links before comparison (bug #431) --- privacy_image_cache/privacy_image_cache.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/privacy_image_cache/privacy_image_cache.php b/privacy_image_cache/privacy_image_cache.php index c7943954..88958101 100644 --- a/privacy_image_cache/privacy_image_cache.php +++ b/privacy_image_cache/privacy_image_cache.php @@ -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); }