https://bugs.internet2.edu/jira/browse/SSPCPP-287
authorcantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Tue, 24 Aug 2010 16:55:00 +0000 (16:55 +0000)
committercantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Tue, 24 Aug 2010 16:55:00 +0000 (16:55 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/branches/REL_1@774 de75baf8-a10c-0410-a50a-987c0e22f00f

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.");
     }