| 269 | } |
| 270 | |
| 271 | static bool hasHttpHeaderUnsafeBytes(SC::StringSpan value) |
| 272 | { |
| 273 | const SC::Span<const char> bytes = value.toCharSpan(); |
| 274 | for (size_t idx = 0; idx < bytes.sizeInBytes(); ++idx) |
| 275 | { |
| 276 | if (bytes[idx] == '\r' or bytes[idx] == '\n' or bytes[idx] == '\0') |
| 277 | { |
| 278 | return true; |
| 279 | } |
| 280 | } |
| 281 | return false; |
| 282 | } |
| 283 | |
| 284 | static bool hasUrlUnsafeBytes(SC::StringSpan value) |
| 285 | { |
no test coverage detected