Stop the page after each HTTPS redirect.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
if ( ! isset($_SERVER['HTTPS'])) {
|
if ( ! isset($_SERVER['HTTPS'])) {
|
||||||
header('Location: https://' . $_SERVER["SERVER_NAME"] . $_SERVER['REQUEST_URI']);
|
header('Location: https://' . $_SERVER["SERVER_NAME"] . $_SERVER['REQUEST_URI']);
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
require_once("../session.lib.php");
|
require_once("../session.lib.php");
|
||||||
$added = FALSE;
|
$added = FALSE;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
if ( ! isset($_SERVER['HTTPS'])) {
|
if ( ! isset($_SERVER['HTTPS'])) {
|
||||||
header('Location: https://' . $_SERVER["SERVER_NAME"] . $_SERVER['REQUEST_URI']);
|
header('Location: https://' . $_SERVER["SERVER_NAME"] . $_SERVER['REQUEST_URI']);
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
require_once("../session.lib.php");
|
require_once("../session.lib.php");
|
||||||
if (!isset($_SESSION['editor'])) {
|
if (!isset($_SESSION['editor'])) {
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
if ( ! isset($_SERVER['HTTPS'])) {
|
if ( ! isset($_SERVER['HTTPS'])) {
|
||||||
header('Location: https://' . $_SERVER["SERVER_NAME"] . $_SERVER['REQUEST_URI']);
|
header('Location: https://' . $_SERVER["SERVER_NAME"] . $_SERVER['REQUEST_URI']);
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
require_once("../session.lib.php");
|
require_once("../session.lib.php");
|
||||||
$denied = NULL;
|
$denied = NULL;
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ header( 'Pragma: no-cache' );
|
|||||||
include_once('../session.lib.php');
|
include_once('../session.lib.php');
|
||||||
if ( ! isset($_SERVER['HTTPS'])) {
|
if ( ! isset($_SERVER['HTTPS'])) {
|
||||||
header('Location: https://' . $_SERVER["SERVER_NAME"] . $_SERVER['REQUEST_URI']);
|
header('Location: https://' . $_SERVER["SERVER_NAME"] . $_SERVER['REQUEST_URI']);
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
// Only log out from our own logout link, which carries the CSRF token
|
// Only log out from our own logout link, which carries the CSRF token
|
||||||
if (!csrf_valid($_GET['token'] ?? '')) {
|
if (!csrf_valid($_GET['token'] ?? '')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user