fix(web/image_hosting/get): return 403 instead of redirect to login
All checks were successful
continuous-integration/drone/push Build is passing

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

View File

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