mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
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:
@@ -3,7 +3,7 @@ require "../include/bittorrent.php";
|
||||
if ($_SERVER["REQUEST_METHOD"] != "POST")
|
||||
stderr("Error", "Permission denied!");
|
||||
dbconn();
|
||||
loggedinorreturn();
|
||||
loggedinorreturn();
|
||||
|
||||
if (get_user_class() < UC_SYSOP)
|
||||
stderr("Sorry", "Permission denied.");
|
||||
@@ -37,5 +37,5 @@ while($dat=mysql_fetch_assoc($query))
|
||||
sql_query("INSERT INTO messages (sender, receiver, added, subject, msg) VALUES ($sender_id, {$dat['id']}, $dt, " . sqlesc($subject) .", " . sqlesc($msg) .")") or sqlerr(__FILE__,__LINE__);
|
||||
}
|
||||
|
||||
header("Refresh: 0; url=amountupload.php?sent=1");
|
||||
header("Location: amountupload.php?sent=1");
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user