| 184 | // even possibly remotely dangerous like & or > |
| 185 | static string safeChars("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890 .,;_/:?@"); |
| 186 | string SanitizeString(const string& str) { |
| 187 | string strResult; |
| 188 | for (string::size_type i = 0; i < str.size(); i++) { |
| 189 | if (safeChars.find(str[i]) != string::npos) strResult.push_back(str[i]); |
| 190 | } |
| 191 | return strResult; |
| 192 | } |
| 193 | |
| 194 | const signed char p_util_hexdigit[256] = { |
| 195 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
no test coverage detected