mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2025-03-25 10:47:02 +00:00
fix(web/image_hosting/get): return 403 instead of redirect to login
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4cccd07a10
commit
e5ea7152a1
@ -2,7 +2,7 @@
|
|||||||
requirePHPLib('form');
|
requirePHPLib('form');
|
||||||
|
|
||||||
if (!Auth::check() && UOJConfig::$data['switch']['force-login']) {
|
if (!Auth::check() && UOJConfig::$data['switch']['force-login']) {
|
||||||
redirectToLogin();
|
become403Page(UOJLocale::get('need login'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$name = $_GET['image_name'];
|
$name = $_GET['image_name'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user