mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 11:43:40 +00:00
normalise links before comparison (bug #431)
This commit is contained in:
parent
3926f5582d
commit
e4b1489b14
1 changed files with 2 additions and 1 deletions
|
@ -62,7 +62,8 @@ function privacy_image_cache_init() {
|
||||||
*/
|
*/
|
||||||
function privacy_image_cache_is_local_image($url) {
|
function privacy_image_cache_is_local_image($url) {
|
||||||
if ($url[0] == '/') return true;
|
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);
|
return (substr($url, 0, strlen($baseurl)) == $baseurl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue