mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 17:15:53 +03:00
[GH-ISSUE #392] HTML for Parameters #329
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#329
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @oscarmoutinho on GitHub (Jul 25, 2017).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/392
'length' in 'WiFiManagerParameter' has 2 errors:
1- The tag has a 'length' attribute and this should be 'maxlength' (see HTTP_FORM_PARAM[]).
2- The length seems to be trimmed to only one digit (I tested with 40 and the web page shows 4)
This does not generate wrong behaviour because 'length' is ignored, but 'length' should be applied correctly.
@Derek123456 commented on GitHub (Aug 22, 2017):
For 2) The culprit seems to be in WiFiManager.cpp line 488
char parLength[2];This only leaves space for 1 character for the length and 1 null terminating character.
On line 500 the length value is copied into parLength
snprintf(parLength, 2, "%d", _params[i]->getValueLength());If you increased size of parLength[] from 2 to 5 that would allow length values up to 9999 which should be more than enough.