summaryrefslogtreecommitdiffstats
path: root/php/Attic/examples
diff options
context:
space:
mode:
authorChristophe Nowicki <cnowicki@easter-eggs.com>2004-09-10 15:35:06 +0000
committerChristophe Nowicki <cnowicki@easter-eggs.com>2004-09-10 15:35:06 +0000
commit19663b8864a6656f9baca0120276ff7607e1fedf (patch)
tree4430b917de9ca0cd5c21fda599f4be47aaff0ef0 /php/Attic/examples
parent0abfa7d0c8bac90e291cf7664a0302aa286f716d (diff)
downloadlasso-19663b8864a6656f9baca0120276ff7607e1fedf.tar.gz
lasso-19663b8864a6656f9baca0120276ff7607e1fedf.tar.xz
lasso-19663b8864a6656f9baca0120276ff7607e1fedf.zip
change header("Location $url\n\n") to header("Location $url\r\n\r\n")
Diffstat (limited to 'php/Attic/examples')
-rw-r--r--php/Attic/examples/sample-idp/login.php2
-rw-r--r--php/Attic/examples/sample-idp/logout.php2
-rw-r--r--php/Attic/examples/sample-idp/singleSignOn.php2
-rw-r--r--php/Attic/examples/sample-sp/assertionConsumer.php2
-rw-r--r--php/Attic/examples/sample-sp/login.php2
-rw-r--r--php/Attic/examples/sample-sp/logout.php11
-rw-r--r--php/Attic/examples/sample-sp/register.php8
7 files changed, 11 insertions, 18 deletions
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:
?>