vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
17.54k stars 3.18k forks source link

[Bug] 编辑配置无法保存 #2888

Closed rrfeng closed 1 year ago

rrfeng commented 1 year ago

Verify Steps

OpenClash Version

v0.45.70-beta

Bug on Environment

Official OpenWrt

Bug on Platform

Linux-amd64(x86-64)

To Reproduce

配置文件管理-编辑配置,配置中添加 emoji -点保存,报错如下

Reference error Unhandled exception during request dispatching access to undeclared variable err In [anonymous function](), file /usr/share/ucode/luci/http.uc, line 97, byte 10: called from function parse ([C]) called from function mimedecode_message_body (/usr/share/ucode/luci/http.uc:111:26) called from function parse_message_body (/usr/share/ucode/luci/http.uc:180:51) called from function [anonymous function] (/usr/share/ucode/luci/http.uc:450:3) called from function [anonymous function] (/usr/share/ucode/luci/http.uc:374:22) called from function require_post_security (/usr/share/ucode/luci/dispatcher.uc:680:47) called from function [anonymous function] (/usr/share/ucode/luci/dispatcher.uc:995:35) called from anonymous function (/www/cgi-bin/luci:39:12)

err = buffer; Near here --------^

Describe the Bug

luci-app-openclash 看起来对 unicode 支持有问题,如果没有 emoji 测试是正常的。

OpenClash Log

OpenClash Config

Expected Behavior

应该能够正常修改配置文件

Screenshots

No response

lloyd18 commented 1 year ago

在官方版本我也出现过,大雕版本没这问题

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days