[GH-ISSUE #1571] WiFiManagerParameter: length 0 not permitted as value #1341

Closed
opened 2026-02-28 01:29:40 +03:00 by kerem · 1 comment
Owner

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

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: https://github.com/tzapu/WiFiManager/blob/297123b5d7670e6c734836c13bf5ffd09b094889/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
kerem 2026-02-28 01:29:40 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@tablatronix commented on GitHub (Mar 16, 2023):

8cf3b43efb

<!-- gh-comment-id:1471184268 --> @tablatronix commented on GitHub (Mar 16, 2023): 8cf3b43efb91aa17a50492aa0efe96c416063098
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1341
No description provided.