mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +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:
+2
-2
@@ -231,7 +231,7 @@ $id = intval($_GET["id"] ?? 0);
|
||||
sql_query ("UPDATE staffmessages SET answered=1, answeredby = {$CURUSER['id']} WHERE id = $id") or sqlerr();
|
||||
$Cache->delete_value('staff_new_message_count');
|
||||
clear_staff_message_cache();
|
||||
header("Refresh: 0; url=staffbox.php" . (!empty($_GET['return']) ? "?" . $_GET['return'] : ''));
|
||||
header("Location: staffbox.php" . (!empty($_GET['return']) ? "?" . $_GET['return'] : ''));
|
||||
}
|
||||
|
||||
//////////////////////////
|
||||
@@ -259,7 +259,7 @@ elseif ($_POST['delete']){
|
||||
}
|
||||
$Cache->delete_value('staff_new_message_count');
|
||||
clear_staff_message_cache();
|
||||
header("Refresh: 0; url=staffbox.php");
|
||||
header("Location: staffbox.php");
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user