aboutsummaryrefslogtreecommitdiff
path: root/www/auth.php
diff options
context:
space:
mode:
authorJustin J. Novack <jnovack@gmail.com>2012-09-16 11:53:48 -0400
committerJustin J. Novack <jnovack@gmail.com>2012-09-16 11:53:48 -0400
commitfbaebb7485cfab4948b8fe000ef2a5279b376f04 (patch)
tree9ffcb4ff6e33f68399827cacb52d32061b4bf62c /www/auth.php
parent5119a5d74428296166658ff746010b8c32abd67f (diff)
downloadphorkie-fbaebb7485cfab4948b8fe000ef2a5279b376f04.tar.gz
phorkie-fbaebb7485cfab4948b8fe000ef2a5279b376f04.zip
FIX: add exit() after header('Location')
Diffstat (limited to 'www/auth.php')
-rw-r--r--www/auth.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/www/auth.php b/www/auth.php
index 8fe38e0..6d13f7e 100644
--- a/www/auth.php
+++ b/www/auth.php
@@ -230,10 +230,10 @@ if (isset($_POST['start'])) {
$openid = $message->getArrayFormat();
if ($GLOBALS['phorkie']['auth']['secure'] > 0 &&
$GLOBALS['phorkie']['auth']['userlist']) {
- if (!in_array($openid['openid.identity'], $GLOBALS['phorkie']['users'])) {
+ if (!in_array($openid['openid.identity'], $GLOBALS['phorkie']['users'])) {
$redirect = 'http://' . $_SERVER['HTTP_HOST'] . "/forbidden";
header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL));
- exit;
+ exit;
}
}
// include_once 'openid/wrapper.php';
@@ -253,6 +253,7 @@ if (isset($_POST['start'])) {
$redirect = 'http://' . $_SERVER['HTTP_HOST'] . $_SESSION['REQUEST_URI'];
header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL));
+ exit;
}
?>