We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1095dfd commit 632c221Copy full SHA for 632c221
1 file changed
src/AsyncWebHeader.cpp
@@ -11,6 +11,11 @@ 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
+ log_v("Invalid character in HTTP header");
17
+ return; // Invalid header format
18
+ }
19
_name = data.substring(0, index);
20
_value = data.substring(index + 2);
21
0 commit comments