https://issues.shibboleth.net/jira/browse/SSPCPP-287
authorScott Cantor <cantor.2@osu.edu>
Tue, 24 Aug 2010 16:55:00 +0000 (16:55 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 24 Aug 2010 16:55:00 +0000 (16:55 +0000)
xmltooling/io/HTTPResponse.cpp

index 63a3dfc..3eee258 100644 (file)
@@ -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.");
     }