mirror of
https://github.com/esphome/esphome.git
synced 2026-02-21 17:05:36 -07:00
tweak comment
This commit is contained in:
@@ -335,8 +335,7 @@ bool AsyncWebServerRequest::authenticate(const char *username, const char *passw
|
||||
return false;
|
||||
}
|
||||
|
||||
// Build user:pass in stack buffer (max 64 + 1 + 64 = 129 bytes typical)
|
||||
// Use 256 bytes to handle longer credentials safely
|
||||
// Build user:pass in stack buffer to avoid heap allocation
|
||||
constexpr size_t max_user_info_len = 256;
|
||||
char user_info[max_user_info_len];
|
||||
size_t user_len = strlen(username);
|
||||
|
||||
Reference in New Issue
Block a user