Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
截至目前,我正在为我的项目使用 pyrocms。但是这个问题适用于所有使用编辑器/WYSIWYG/fckeditor 来更新内容的cms。
事情是我有一个 iframe,比如 facebook 之类的按钮。我可以将它嵌入到页面中,因为它只是在输出页面中呈现代码。但是,如果我在页脚 html 页面中使用相同的,它工作正常。有什么办法可以克服这个问题,而不是编写一个插件/小部件来获取信息并渲染它?
谢谢goG
我重新启用了对模块的 XSS 支持,但页面是一个不应该被 XSS 过滤的模块(因为它没有前端数据输入)。
打开 modules DB 表并将 skip_xss 设置为 1。然后运行:
sudo rm -rf 系统/pyrocms/cache/module_m/
这将清除缓存,您会发现 iframe 不再被删除。