Skip to content
Snippets Groups Projects
Commit 32bddb20 authored by Olav Morken's avatar Olav Morken
Browse files

Bindings: Format debug output.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@947 44740490-163a-0410-bde0-09ae8108e29a
parent 9addb1ba
No related branches found
No related tags found
No related merge requests found
...@@ -185,7 +185,7 @@ class SimpleSAML_Bindings_SAML20_HTTPPost { ...@@ -185,7 +185,7 @@ class SimpleSAML_Bindings_SAML20_HTTPPost {
$p->data['RelayState'] = $relayState; $p->data['RelayState'] = $relayState;
$p->data['destination'] = $destination; $p->data['destination'] = $destination;
$p->data['response'] = str_replace("\n", "", base64_encode($response)); $p->data['response'] = str_replace("\n", "", base64_encode($response));
$p->data['responseHTML'] = htmlentities($responsedom->saveHTML()); $p->data['responseHTML'] = htmlspecialchars(SimpleSAML_Utilities::formatXMLString($response));
$p->show(); $p->show();
......
...@@ -233,7 +233,7 @@ class SimpleSAML_Bindings_SAML20_HTTPRedirect { ...@@ -233,7 +233,7 @@ class SimpleSAML_Bindings_SAML20_HTTPRedirect {
$p->data['header'] = 'HTTP-REDIRECT Debug'; $p->data['header'] = 'HTTP-REDIRECT Debug';
$p->data['url'] = $redirectURL; $p->data['url'] = $redirectURL;
$p->data['message'] = htmlentities($request); $p->data['message'] = htmlspecialchars(SimpleSAML_Utilities::formatXMLString($request));
$p->show(); $p->show();
......
...@@ -161,7 +161,7 @@ class SimpleSAML_Bindings_Shib13_HTTPPost { ...@@ -161,7 +161,7 @@ class SimpleSAML_Bindings_Shib13_HTTPPost {
$p->data['RelayState'] = $relayState; $p->data['RelayState'] = $relayState;
$p->data['destination'] = $destination; $p->data['destination'] = $destination;
$p->data['response'] = str_replace("\n", "", base64_encode($response)); $p->data['response'] = str_replace("\n", "", base64_encode($response));
$p->data['responseHTML'] = htmlentities($responsedom->saveHTML()); $p->data['responseHTML'] = htmlspecialchars(SimpleSAML_Utilities::formatXMLString($response));
$p->show(); $p->show();
......
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