| 25 | }; |
| 26 | |
| 27 | std::string SanitizeString(const std::string& str, int rule) |
| 28 | { |
| 29 | std::string strResult; |
| 30 | for (std::string::size_type i = 0; i < str.size(); i++) |
| 31 | { |
| 32 | if (SAFE_CHARS[rule].find(str[i]) != std::string::npos) |
| 33 | strResult.push_back(str[i]); |
| 34 | } |
| 35 | return strResult; |
| 36 | } |
| 37 | |
| 38 | const signed char p_util_hexdigit[256] = |
| 39 | { -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, |