fix: Change Refresh into Location

If use Refresh, it will not work on some browser and
some protocols (e.g. HTTP/2). So, change Refresh
into Location.

Signed-off-by: SPC <github@spcsky.com>
This commit is contained in:
SPC
2025-02-19 19:46:51 +08:00
parent 7b3e74b47e
commit a80f53d4f4
18 changed files with 31 additions and 31 deletions

View File

@@ -1973,7 +1973,7 @@ function userlogin() {
$res = sql_query("SELECT * FROM bans WHERE $nip >= first AND $nip <= last") or sqlerr(__FILE__, __LINE__);
if (mysql_num_rows($res) > 0)
{
header("HTTP/1.0 403 Forbidden");
header("HTTP/1.1 403 Forbidden");
print("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"></head><body>".$lang_functions['text_unauthorized_ip']."</body></html>\n");
die;
}
@@ -3008,7 +3008,7 @@ function mksecret($len = 20) {
}
function httperr($code = 404) {
header("HTTP/1.0 404 Not found");
header("HTTP/1.1 404 Not found");
print("<h1>Not Found</h1>\n");
exit();
}