From 32bddb20ec1686a7eeff7ee4ddeaf2f3513b8128 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Mon, 27 Oct 2008 13:18:29 +0000 Subject: [PATCH] Bindings: Format debug output. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@947 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/Bindings/SAML20/HTTPPost.php | 2 +- lib/SimpleSAML/Bindings/SAML20/HTTPRedirect.php | 2 +- lib/SimpleSAML/Bindings/Shib13/HTTPPost.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/SimpleSAML/Bindings/SAML20/HTTPPost.php b/lib/SimpleSAML/Bindings/SAML20/HTTPPost.php index 83680fa8e..703f08f0a 100644 --- a/lib/SimpleSAML/Bindings/SAML20/HTTPPost.php +++ b/lib/SimpleSAML/Bindings/SAML20/HTTPPost.php @@ -185,7 +185,7 @@ class SimpleSAML_Bindings_SAML20_HTTPPost { $p->data['RelayState'] = $relayState; $p->data['destination'] = $destination; $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(); diff --git a/lib/SimpleSAML/Bindings/SAML20/HTTPRedirect.php b/lib/SimpleSAML/Bindings/SAML20/HTTPRedirect.php index 526ee3022..ffb55787a 100644 --- a/lib/SimpleSAML/Bindings/SAML20/HTTPRedirect.php +++ b/lib/SimpleSAML/Bindings/SAML20/HTTPRedirect.php @@ -233,7 +233,7 @@ class SimpleSAML_Bindings_SAML20_HTTPRedirect { $p->data['header'] = 'HTTP-REDIRECT Debug'; $p->data['url'] = $redirectURL; - $p->data['message'] = htmlentities($request); + $p->data['message'] = htmlspecialchars(SimpleSAML_Utilities::formatXMLString($request)); $p->show(); diff --git a/lib/SimpleSAML/Bindings/Shib13/HTTPPost.php b/lib/SimpleSAML/Bindings/Shib13/HTTPPost.php index 9290a6703..ee8dc5f18 100644 --- a/lib/SimpleSAML/Bindings/Shib13/HTTPPost.php +++ b/lib/SimpleSAML/Bindings/Shib13/HTTPPost.php @@ -161,7 +161,7 @@ class SimpleSAML_Bindings_Shib13_HTTPPost { $p->data['RelayState'] = $relayState; $p->data['destination'] = $destination; $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(); -- GitLab