From: Andrew Dolgov Date: Fri, 10 Feb 2017 12:14:47 +0000 (+0300) Subject: use get_self_url_prefix() when rewriting cached images X-Git-Tag: 17.4~47 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=fafd32e2dc98eeb3a159c29b12cee2d144ad243f;p=tt-rss.git use get_self_url_prefix() when rewriting cached images --- diff --git a/include/functions2.php b/include/functions2.php index 76d92920..d490ae50 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -914,7 +914,7 @@ $cached_filename = CACHE_DIR . '/images/' . sha1($src) . $extension; if (file_exists($cached_filename)) { - $src = SELF_URL_PATH . '/public.php?op=cached_image&hash=' . sha1($src) . $extension; + $src = get_self_url_prefix() . '/public.php?op=cached_image&hash=' . sha1($src) . $extension; if ($entry->hasAttribute('srcset')) { $entry->removeAttribute('srcset');