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

ueditor超链接保存到数据库中加前缀@的Bug #384

Closed
linghu86 opened this issue Mar 23, 2018 · 7 comments
Closed

ueditor超链接保存到数据库中加前缀@的Bug #384

linghu86 opened this issue Mar 23, 2018 · 7 comments
Labels

Comments

@linghu86
Copy link

linghu86 commented Mar 23, 2018

版本: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">百度

就是说,每次都会在原基础上往链接地址前加@符号??是基于什么判断需要加@符号呢?

@starlying
Copy link
Contributor

好的,我们马上查一下

@starlying
Copy link
Contributor

我们测试正常啊,这个站点有什么特别吗,比如子站或者设置了独立API或其他?

@dreamJune
Copy link

我在233版本也遇到这个问题,在SiteServer.CMS.Core.ContentUtility的TextEditorContentEncode(***)中,输入一个外链地址, StringUtils.ReplaceHrefOrSrc(builder, url, "@");会把外链地址加一个@字符

@linghu86
Copy link
Author

是主站,不是子站

@linghu86
Copy link
Author

未设置独立的API

@starlying
Copy link
Contributor

恩,我们查查代码

@starlying
Copy link
Contributor

已解决,升级到6.0.253版本
需要修改web.config里面的IsNightlyUpdate为True,允许系统升级到最新开发版。

@starlying starlying mentioned this issue Mar 23, 2018
65 tasks
@starlying starlying added the BUG label Mar 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants