Skip to content
Snippets Groups Projects
Commit 5c8cc67d authored by Mads Freek Petersen's avatar Mads Freek Petersen
Browse files

Fixed error if proxyValidate was used.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2591 44740490-163a-0410-bde0-09ae8108e29a
parent 65006707
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,7 @@ try { ...@@ -66,7 +66,7 @@ try {
function returnResponse($value, $function, $usrname = '', $attributes = array(), $xtraxml = "") { function returnResponse($value, $function, $usrname = '', $attributes = array(), $xtraxml = "") {
if ($value === 'YES') { if ($value === 'YES') {
if ($function == 'serviceValidate') { if ($function != 'validate') {
$attributesxml = ""; $attributesxml = "";
foreach ($attributes as $attributename => $attributelist) { foreach ($attributes as $attributename => $attributelist) {
$attr = htmlspecialchars($attributename); $attr = htmlspecialchars($attributename);
...@@ -86,7 +86,7 @@ function returnResponse($value, $function, $usrname = '', $attributes = array(), ...@@ -86,7 +86,7 @@ function returnResponse($value, $function, $usrname = '', $attributes = array(),
echo 'yes' . "\n" . $usrname; echo 'yes' . "\n" . $usrname;
} }
} else { } else {
if ($function == 'serviceValidate') { if ($function != 'validate') {
echo '<cas:serviceResponse xmlns:cas="http://www.yale.edu/tp/cas"> echo '<cas:serviceResponse xmlns:cas="http://www.yale.edu/tp/cas">
<cas:authenticationFailure code=""> <cas:authenticationFailure code="">
</cas:authenticationFailure> </cas:authenticationFailure>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment