mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[PR #660] [MERGED] Fix crasahes in doParamSave() & WiFiManagerParameter::setValue #1658
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#1658
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?
📋 Pull Request Information
Original PR: https://github.com/tzapu/WiFiManager/pull/660
Author: @liebman
Created: 7/15/2018
Status: ✅ Merged
Merged: 7/16/2018
Merged by: @tablatronix
Base:
development← Head:do_param_save📝 Commits (2)
85dd747Use hasParam() instead of checking server.arg() for NULL, it returns a String anyway.2fac07cWiFiManagerParameter::setValue used length of default value for i📊 Changes
1 file changed (+12 additions, -6 deletions)
View changed files
📝
WiFiManager.cpp(+12 -6)📄 Description
Had crashes in
doParamSave().Changed to use
server.hasParam()instead of checkingserver.arg()for NULL, it returns aStringnot a pointer.Don't use
.c_str()when its being assigned to aString. I think using.c_str()onStringthat are transient is probably not safe.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.