From 14f7b184f6c0cdc2514e3a5221eb20a459fb24df Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Wed, 10 Nov 2010 13:18:53 +0000
Subject: [PATCH] openid: Stop executing script after displaying POST redirect
 page.

Thanks to Brook Schofield for spotting this error.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2627 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/openid/lib/Auth/Source/OpenIDConsumer.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/openid/lib/Auth/Source/OpenIDConsumer.php b/modules/openid/lib/Auth/Source/OpenIDConsumer.php
index a28fddd86..929bbcf82 100644
--- a/modules/openid/lib/Auth/Source/OpenIDConsumer.php
+++ b/modules/openid/lib/Auth/Source/OpenIDConsumer.php
@@ -219,6 +219,7 @@ class sspmod_openid_Auth_Source_OpenIDConsumer extends SimpleSAML_Auth_Source {
 				echo '<html><head><title>OpenID transaction in progress</title></head>
 					<body onload=\'document.getElementById("' . $form_id . '").submit()\'>' .
 					$form_html . '</body></html>';
+				exit;
 			}
 		}
 	}
-- 
GitLab