mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-11 14:10:06 +01:00
fix: redirect_back duplication
This commit is contained in:
parent
239f1f92fe
commit
563d8f6738
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
|||
if (isset($_SESSION['redirect_back'])) {
|
||||
flashSuccess('You have been logged in. Please try your action again.');
|
||||
header('Location: ' . $_SESSION['redirect_back']);
|
||||
unset($_SESSION['redirect_back']);
|
||||
} else {
|
||||
header("Location: dashboard.php");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue