From e5ea7152a1bc954df717de5942cb8e33d3f18d12 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Tue, 18 Oct 2022 10:55:24 +0800 Subject: [PATCH] fix(web/image_hosting/get): return 403 instead of redirect to login --- web/app/controllers/image_hosting/get_image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/controllers/image_hosting/get_image.php b/web/app/controllers/image_hosting/get_image.php index 1f53f04..1b8c2bb 100644 --- a/web/app/controllers/image_hosting/get_image.php +++ b/web/app/controllers/image_hosting/get_image.php @@ -2,7 +2,7 @@ requirePHPLib('form'); if (!Auth::check() && UOJConfig::$data['switch']['force-login']) { - redirectToLogin(); + become403Page(UOJLocale::get('need login')); } $name = $_GET['image_name'];