[cpp-sp] branch master updated: SSPCPP-730 - POST form preservation not character-set safe

Scott Cantor cantor.2 at osu.edu
Wed Apr 4 16:23:19 EDT 2018


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=32cceef8d764f9c0a9aa8b17eebc7c5950b1db3d

The following commit(s) were added to refs/heads/master by this push:
       new  32cceef   SSPCPP-730 - POST form preservation not character-set safe
32cceef is described below

commit 32cceef8d764f9c0a9aa8b17eebc7c5950b1db3d
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Apr 4 16:21:51 2018 -0400

    SSPCPP-730 - POST form preservation not character-set safe
    
    https://issues.shibboleth.net/jira/browse/SSPCPP-730
---
 shibsp/handler/impl/RemotedHandler.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/shibsp/handler/impl/RemotedHandler.cpp b/shibsp/handler/impl/RemotedHandler.cpp
index 21bb01e..8d2d4e4 100644
--- a/shibsp/handler/impl/RemotedHandler.cpp
+++ b/shibsp/handler/impl/RemotedHandler.cpp
@@ -289,7 +289,7 @@ long RemotedResponse::sendResponse(std::istream& in, long status)
     }
     if (!m_output.isstruct())
         m_output.structure();
-    m_output.addmember("response.data").string(msg.c_str());
+    m_output.addmember("response.data").unsafe_string(msg.c_str());
     m_output.addmember("response.status").integer(status);
     return status;
 }
@@ -313,7 +313,7 @@ void RemotedResponse::setResponseHeader(const char* name, const char* value, boo
     }
 
     if (value && *value) {
-        DDF h = DDF(name).string(value);
+        DDF h = DDF(name).unsafe_string(value);
         hdrs.add(h);
     }
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list