From: Scott Cantor Date: Tue, 24 Aug 2010 16:55:00 +0000 (+0000) Subject: https://issues.shibboleth.net/jira/browse/SSPCPP-287 X-Git-Tag: 1.4RC1~44 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=commitdiff_plain;h=ba287bb9958f3d711c764ecd4a0ca009a37f8b86 https://issues.shibboleth.net/jira/browse/SSPCPP-287 --- diff --git a/xmltooling/io/HTTPResponse.cpp b/xmltooling/io/HTTPResponse.cpp index 63a3dfc..3eee258 100644 --- a/xmltooling/io/HTTPResponse.cpp +++ b/xmltooling/io/HTTPResponse.cpp @@ -45,7 +45,7 @@ void HTTPResponse::sanitizeURL(const char* url) { const char* ch; for (ch=url; *ch; ++ch) { - if (iscntrl(*ch)) + if (iscntrl((unsigned char)(*ch))) // convert to unsigned to allow full range from 00-FF throw IOException("URL contained a control character."); }