From 19663b8864a6656f9baca0120276ff7607e1fedf Mon Sep 17 00:00:00 2001 From: Christophe Nowicki Date: Fri, 10 Sep 2004 15:35:06 +0000 Subject: change header("Location $url\n\n") to header("Location $url\r\n\r\n") --- php/Attic/examples/sample-idp/login.php | 2 +- php/Attic/examples/sample-idp/logout.php | 2 +- php/Attic/examples/sample-idp/singleSignOn.php | 2 +- php/Attic/examples/sample-sp/assertionConsumer.php | 2 +- php/Attic/examples/sample-sp/login.php | 2 +- php/Attic/examples/sample-sp/logout.php | 11 ++++------- php/Attic/examples/sample-sp/register.php | 8 ++------ 7 files changed, 11 insertions(+), 18 deletions(-) (limited to 'php') diff --git a/php/Attic/examples/sample-idp/login.php b/php/Attic/examples/sample-idp/login.php index 4c4e4979..64fea1ad 100644 --- a/php/Attic/examples/sample-idp/login.php +++ b/php/Attic/examples/sample-idp/login.php @@ -66,7 +66,7 @@ $url = 'index.php'; header("Request-URI: $url"); header("Content-Location: $url"); - header("Location: $url\n\n"); + header("Location: $url\r\n\r\n"); exit; } } diff --git a/php/Attic/examples/sample-idp/logout.php b/php/Attic/examples/sample-idp/logout.php index 83c23a33..2114757f 100644 --- a/php/Attic/examples/sample-idp/logout.php +++ b/php/Attic/examples/sample-idp/logout.php @@ -32,6 +32,6 @@ $url = "index.php"; header("Request-URI: $url"); header("Content-Location: $url"); - header("Location: $url\n\n"); + header("Location: $url\r\n\r\n"); exit; ?> diff --git a/php/Attic/examples/sample-idp/singleSignOn.php b/php/Attic/examples/sample-idp/singleSignOn.php index f137e73f..2aab4b40 100644 --- a/php/Attic/examples/sample-idp/singleSignOn.php +++ b/php/Attic/examples/sample-idp/singleSignOn.php @@ -162,7 +162,7 @@ header("Request-URI: $url"); header("Content-Location: $url"); - header("Location: $url\n\n"); + header("Location: $url\r\n\r\n"); lasso_shutdown(); exit; case lassoLoginProtocolProfileBrwsPost: diff --git a/php/Attic/examples/sample-sp/assertionConsumer.php b/php/Attic/examples/sample-sp/assertionConsumer.php index fd0c9fe9..1413fd59 100644 --- a/php/Attic/examples/sample-sp/assertionConsumer.php +++ b/php/Attic/examples/sample-sp/assertionConsumer.php @@ -181,6 +181,6 @@ header("Request-URI: $url"); header("Content-Location: $url"); - header("Location: $url\n\n"); + header("Location: $url\r\n\r\n"); exit(); ?> diff --git a/php/Attic/examples/sample-sp/login.php b/php/Attic/examples/sample-sp/login.php index a78589af..339a8a2e 100644 --- a/php/Attic/examples/sample-sp/login.php +++ b/php/Attic/examples/sample-sp/login.php @@ -48,6 +48,6 @@ header("Request-URI: $url"); header("Content-Location: $url"); - header("Location: $url\n\n"); + header("Location: $url\r\n\r\n"); exit(); ?> diff --git a/php/Attic/examples/sample-sp/logout.php b/php/Attic/examples/sample-sp/logout.php index fedae253..82a283f7 100644 --- a/php/Attic/examples/sample-sp/logout.php +++ b/php/Attic/examples/sample-sp/logout.php @@ -22,14 +22,11 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ - $config = unserialize(file_get_contents('config.inc')); + $config = unserialize(file_get_contents('config.inc')); - require_once 'DB.php'; + require_once 'DB.php'; - if (!empty($_GET['SID'])) - session_start($_GET['SID']); - else - session_start(); + session_start(); if (!isset($_SESSION["nameidentifier"])) { print "User is not logged in"; @@ -124,6 +121,6 @@ header("Request-URI: $url"); header("Content-Location: $url"); - header("Location: $url\n\n"); + header("Location: $url\r\n\r\n"); exit; ?> diff --git a/php/Attic/examples/sample-sp/register.php b/php/Attic/examples/sample-sp/register.php index 317c3460..6c1b0152 100644 --- a/php/Attic/examples/sample-sp/register.php +++ b/php/Attic/examples/sample-sp/register.php @@ -25,11 +25,7 @@ $config = unserialize(file_get_contents('config.inc')); require_once 'DB.php'; - - if (!empty($_GET['SID'])) - session_start($_GET['SID']); - else - session_start(); + session_start(); if (!isset($_SESSION["nameidentifier"])) { print "User is not logged in"; @@ -55,7 +51,7 @@ $url = "index.php"; header("Request-URI: $url"); header("Content-Location: $url"); - header("Location: $url\n\n"); + header("Location: $url\r\n\r\n"); exit(); default: ?> -- cgit