mirror of
https://github.com/4IceG/luci-app-3ginfo-lite.git
synced 2026-04-25 11:25:50 +03:00
[PR #120] [MERGED] workaround for malformed cops reply #130
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-3ginfo-lite#130
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-3ginfo-lite/pull/120
Author: @kazigk
Created: 5/6/2025
Status: ✅ Merged
Merged: 5/6/2025
Merged by: @4IceG
Base:
main← Head:main📝 Commits (1)
e7009e2workaround for malformed cops reply📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
luci-app-3ginfo-lite/root/usr/share/3ginfo-lite/3ginfo.sh(+1 -1)📄 Description
Some operator names contain carriage return and/or newline characters:
Since commit
51d8df1added primitive sanitization, this no longer crashes the app.However, this will still cause issues with mode recognition:
github.com/4IceG/luci-app-3ginfo-lite@51d8df1aa1/luci-app-3ginfo-lite/root/usr/share/3ginfo-lite/3ginfo.sh (L407)And consequently, modem scripts won't be able to get cell id and signal data.
Sanitizing the output can be tricky. Previously, I added a line to remove
\r\r\nsequences, but this approach is not universally applicable and could potentially break compatibility with other devices.To resolve this, we can bypass the issue entirely by using the response from the other COPS command we've already sent.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.