Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在VLESS分享链接中如果别名有+,导入后会将+变成空格 #2147

Closed
bin456789 opened this issue Mar 31, 2022 · 2 comments
Closed

Comments

@bin456789
Copy link

类似issue,空格变加号
#1937

复现:
选中一个别名中含有加号的条目,ctrl+c,ctrl+v
粘贴后的新条目,别名的加号变成了空格

修复建议:
这两份标准都提到用 encodeURIComponent
XTLS/Xray-core#91
v2ray/discussion#720
C# 对应的应该是 Uri.EscapeDataString

// 参考
encodeURIComponent('1+2=3 ') '1%2B2%3D3%20'
HttpUtility.UrlEncode("1+2=3 ") "1%2b2%3d3+" // 目前在用的
HttpUtility.UrlPathEncode("1+2=3 ") "1+2=3%20"
Uri.EscapeDataString("1+2=3 ") "1%2B2%3D3%20"

@2dust
Copy link
Owner

2dust commented Mar 31, 2022

v2rayN.zip
试一试

@2dust 2dust closed this as completed Mar 31, 2022
@bin456789
Copy link
Author

没问题了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants