1
1
mirror of https://github.com/renbaoshuo/S2OJ.git synced 2025-04-21 11:04:36 +00:00

fix(web/image_hosting/get): return 403 instead of redirect to login

This commit is contained in:
Baoshuo Ren 2022-10-18 10:55:24 +08:00
parent 4cccd07a10
commit e5ea7152a1
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

@ -2,7 +2,7 @@
requirePHPLib('form');
if (!Auth::check() && UOJConfig::$data['switch']['force-login']) {
redirectToLogin();
become403Page(UOJLocale::get('need login'));
}
$name = $_GET['image_name'];