]> git.mxchange.org Git - friendica-addons.git/commitdiff
normalise links before comparison (bug #431)
authorfriendica <info@friendica.com>
Wed, 23 May 2012 05:33:08 +0000 (22:33 -0700)
committerfriendica <info@friendica.com>
Wed, 23 May 2012 05:33:08 +0000 (22:33 -0700)
privacy_image_cache/privacy_image_cache.php

index c79439549a38d5b6804ed8304fceb666150a3258..88958101565683dd5a3577dff5de2d804ce4c773 100644 (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);
 }