mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1571] WiFiManagerParameter: length 0 not permitted as value #1341
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#1341
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 @glanch on GitHub (Mar 6, 2023).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1571
Hello,
I'd like to know why a param is only shown to the user if the length is not equal 0. This would imply that a parameter can never have an empty string as a value.
The method
String WiFiManager::getParamOut()which is responsible for printing parameter lists in HTTP responses tests whether the string has length 0 and interprets this as an error - whatever error is indicated by an empty string:github.com/tzapu/WiFiManager@297123b5d7/WiFiManager.cpp (L1736)If there is a technical reason why a parameter can't be empty, I'd really like to know before investigating solutions.
Best,
glanch
@tablatronix commented on GitHub (Mar 16, 2023):
8cf3b43efb