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:
@@ -48,7 +48,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||
\App\Models\Message::query()->insert($messages);
|
||||
$page++;
|
||||
}
|
||||
header(sprintf("Refresh: 0; url=%s?sent=1", $_SERVER['PHP_SELF']));
|
||||
header(sprintf("Location: %s?sent=1", $_SERVER['PHP_SELF']));
|
||||
}
|
||||
|
||||
stdhead("Add Attendance card", false);
|
||||
|
||||
Reference in New Issue
Block a user