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

@@ -53,5 +53,5 @@ if (\App\Models\User::query()->where("id", $row['owner'])->exists()) {
sql_query("INSERT INTO messages (sender, receiver, subject, added, msg) VALUES(0, $row[owner], $subject, $dt, $msg)") or sqlerr(__FILE__, __LINE__);
}
}
header("Refresh: 0; url=torrents.php");
header("Location: torrents.php");
?>