We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1095dfd + 4821424 commit afb9522Copy full SHA for afb9522
src/AsyncWebHeader.cpp
@@ -11,6 +11,13 @@ AsyncWebHeader::AsyncWebHeader(const String &data) {
11
if (index < 0) {
12
return;
13
}
14
+ if (data.indexOf('\r') >= 0 || data.indexOf('\n') >= 0) {
15
+// Note: do not log as info, warn or error because this could flood the logs without being able to filter this out
16
+#ifdef ESP32
17
+ log_v("Invalid character in HTTP header");
18
+#endif
19
+ return; // Invalid header format
20
+ }
21
_name = data.substring(0, index);
22
_value = data.substring(index + 2);
23
0 commit comments