mirror of
https://github.com/4IceG/luci-app-modemdata.git
synced 2026-04-26 03:06:03 +03:00
[PR #29] [MERGED] fix: remove unicode control characters when attempting to parse JSON #27
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/luci-app-modemdata#27
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/4IceG/luci-app-modemdata/pull/29
Author: @WereCatf
Created: 12/17/2025
Status: ✅ Merged
Merged: 12/17/2025
Merged by: @4IceG
Base:
main← Head:unicodecontrolchars📝 Commits (1)
e3e1545fix: remove unicode control characters when attempting to parse JSON📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
luci-app-modemdata/htdocs/luci-static/resources/view/modem/modempreview.js(+2 -2)📄 Description
Some operators appear to be inserting unicode control characters at the end of their name which then causes attempts to parse the raw text into proper JSON in modempreview.js to fail. As an example the author of this bugfix sees operator name reported as "evz\u001e\u0006".
This bugfix removes any unicode control characters from the raw text before attempting to parse it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.