mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-04 14:29:15 +00:00
workaround against markup being broken by cache_images()
This commit is contained in:
@@ -4,12 +4,14 @@
|
||||
|
||||
require_once "config.php";
|
||||
|
||||
$filename = CACHE_DIR . '/images/' . sha1($_GET['url']) . '.png';
|
||||
$url = base64_decode($_GET['url']);
|
||||
|
||||
$filename = CACHE_DIR . '/images/' . sha1($url) . '.png';
|
||||
|
||||
if (file_exists($filename)) {
|
||||
header("Content-type: image/png");
|
||||
echo file_get_contents($filename);
|
||||
} else {
|
||||
header("Location: " . $_GET['url']);
|
||||
header("Location: $url");
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user