From 451853f310188e9f10fe5e6595fa99cf9889681d Mon Sep 17 00:00:00 2001 From: sistav Date: Sun, 22 Feb 2026 15:39:43 -0500 Subject: [PATCH] last time --- gif/random/index.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gif/random/index.php b/gif/random/index.php index 9b87d27..f5ccaa2 100644 --- a/gif/random/index.php +++ b/gif/random/index.php @@ -2,9 +2,6 @@ $gif_files = glob($_SERVER['DOCUMENT_ROOT'] . '/assets/gifs/*.gif'); if (empty($gif_files)) { http_response_code(404); exit; } -$file = $gif_files[array_rand($gif_files)]; +$file = basename($gif_files[array_rand($gif_files)]); -header('Content-Type: image/gif'); -header('Content-Length: ' . filesize($file)); -header('Cache-Control: no-store, no-cache, must-revalidate'); -readfile($file); \ No newline at end of file +header('Location: https://sistav.com/assets/gifs/' . rawurlencode($file), true, 302); \ No newline at end of file