移动 TinyMCEditor 后
我将 ModX 移至新位置。 ModX 内部有一个 TinyMCEditor。
移动后,如果我将 html 粘贴到其中,TinyMCEditor 就会用奇怪的单词和反斜杠替换我的所有内容。
在旧的 TinyMCEditor 中工作的旧内容:
<img src="assets/images/Screen shot 2011-08-16 at 2.36.55 PM.png" alt="" width="145" height="60" />
粘贴后:
<img src="\"assets/images/Screen" alt="\"\"" width="\"145\"" height="\"60\"" />
所以它不仅删除了实际图像,而且还将那些 "
jobbies 也扔在那里。
更新
我推断这个问题与 PHP 的 Magic Quotes 有关,如下所示:
但这是共享的服务器,并且我在任何地方都看不到可用的 PHP.ini 文件。还可以编辑此选项吗?
I moved ModX to a new location. Inside ModX there is a TinyMCEditor.
After the move, if I paste html into it, TinyMCEditor is replacing all my content with strange words and backslashes.
Old content which worked in old TinyMCEditor :
<img src="assets/images/Screen shot 2011-08-16 at 2.36.55 PM.png" alt="" width="145" height="60" />
After paste:
<img src="\"assets/images/Screen" alt="\"\"" width="\"145\"" height="\"60\"" />
So not only does it remove the actual image, but it also throw those "
jobbies in there too.
Update
I have deduced this problem having something to do with PHP's Magic Quotes as reflected here :
But this is a shared server, and I don't see a PHP.ini file available anywhere. Is it still possible to edit this option?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试更改服务器的 .htaccess 文件并添加
否则,您将需要在保存之前删除所有输入上的斜杠。
参考
http://php.net/manual/en/security.magicquotes .disabling.php
You can try altering the .htaccess file for the server and add
Otherwise you will need to strip the slashes on all input before saving it.
ref
http://php.net/manual/en/security.magicquotes.disabling.php