| 64 | }; |
| 65 | |
| 66 | std::string SanitizeString(const std::string& str, SafeCharsRule rule) { |
| 67 | std::string strResult; |
| 68 | for (std::string::size_type i = 0; i < str.size(); i++) { |
| 69 | if (SAFE_CHARS[rule].find(str[i]) != std::string::npos) strResult.push_back(str[i]); |
| 70 | } |
| 71 | return strResult; |
| 72 | } |
| 73 | |
| 74 | /** HTTP request work item */ |
| 75 | class HTTPWorkItem final : public HTTPClosure { |
no test coverage detected