-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ueditor超链接保存到数据库中加前缀@的Bug #384
Labels
Comments
好的,我们马上查一下 |
我们测试正常啊,这个站点有什么特别吗,比如子站或者设置了独立API或其他? |
我在233版本也遇到这个问题,在SiteServer.CMS.Core.ContentUtility的TextEditorContentEncode(***)中,输入一个外链地址, StringUtils.ReplaceHrefOrSrc(builder, url, "@");会把外链地址加一个@字符 |
是主站,不是子站 |
未设置独立的API |
恩,我们查查代码 |
已解决,升级到6.0.253版本 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
版本:6.0.233
例:
在编辑器中添加超链接
< a href="http://www.baidu.com" target="_blank">百度
post到后台的数据是正常的,但后台应该是对超链接做了某些判断,在链接地址前加了@
符号,结果保存到数据库中:
< a href="@http://www.baidu.com" target="_blank">百度
此时,在前端编辑该内容,取出来的值是:
< a href="/http://www.baidu.com" target="_blank">百度
再次保存,数据库中的值:
< a href="@/http://www.baidu.com" target="_blank">百度
在前端继续编辑该内容,取出来的值是:
< a href="//http://www.baidu.com" target="_blank">百度
就是说,每次都会在原基础上往链接地址前加@符号??是基于什么判断需要加@符号呢?
The text was updated successfully, but these errors were encountered: