[shibboleth-sp2] 17/18: Add additional chars to encoder

Ferenc Wágner wferi-guest at moszumanska.debian.org
Tue Jan 26 21:29:31 UTC 2016


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

wferi-guest pushed a commit to annotated tag 1.2.1b
in repository shibboleth-sp2.

commit e0ce00ad66cbc3ac9a7086076576bc6c92addeec
Author: Scott Cantor <cantor.2 at osu.edu>
Date:   Thu Jan 5 02:43:08 2006 +0000

    Add additional chars to encoder
---
 shib-target/shib-mlp.cpp | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/shib-target/shib-mlp.cpp b/shib-target/shib-mlp.cpp
index bce9623..20d8215 100644
--- a/shib-target/shib-mlp.cpp
+++ b/shib-target/shib-mlp.cpp
@@ -99,10 +99,19 @@ void ShibMLPPriv::html_encode(string& os, const char* start)
             case '<':   os += "<";       break;
             case '>':   os += ">";       break;
             case '"':   os += """;     break;
-            case '\'':  os += "’";    break;
+            case '#':   os += "#";      break;
+            case '%':   os += "%";      break;
+            case '&':   os += "&";      break;
+            case '\'':  os += "'";      break;
             case '(':   os += "(";      break;
             case ')':   os += ")";      break;
             case ':':   os += ":";      break;
+            case '[':   os += "[";      break;
+            case '\\':  os += "\";      break;
+            case ']':   os += "]";      break;
+            case '`':   os += "`";      break;
+            case '{':   os += "{";     break;
+            case '}':   os += "}";     break;
             default:    os += *start;
         }
         start++;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git



More information about the Pkg-shibboleth-devel mailing list