简体   繁体   English

Onclick导致Joomla 3.3.6中的服务器连接重置

[英]Onclick causes Server Connection Reset in Joomla 3.3.6

I have been developing a Joomla website locally on MAMP 3.2x and just yesterday I migrated it to the clients server. 我一直在MAMP 3.2x上本地开发Joomla网站,就在昨天,我将其迁移到客户端服务器。 It is running CentOS 6.5 with Apache 2.2.xx (standard CentOS Package). 它正在运行带有Apache 2.2.xx(标准CentOS软件包)的CentOS 6.5。 I have installed php5.5 & php5.5-fpm, along with MySQL etc. 我已经安装了php5.5&php5.5-fpm,以及MySQL等。

The site is working absolutely fine, except for 1 little issue, which I have narrowed down to the word "Onclick" 该网站工作正常,除了1个小问题,我将其缩小为“ Onclick”一词

If any article or module or content, somewhere includes the word "onclick", as soon as I click Save, Save Close, Cancel, etc, I get a Server Dropped Connection Error. 如果任何文章,模块或内容的某处包含“ onclick”一词,则当我单击“保存”,“保存关闭”,“取消”等后,我会收到服务器掉线错误。

The weird thing is if its "Onclic" or "Onclik" or anyother variation, then its fine. 奇怪的是,如果它是“ Onclic”或“ Onclik”或任何其他变体,则可以。 But somehow "onclick" causes it to fail. 但是以某种方式“ onclick”会导致它失败。

  • Its not a POST Size issue, just a simple line will do it. 它不是POST大小问题,只需执行简单的一行即可。
  • I have tried Chrome, Safari and Firefox. 我尝试过Chrome,Safari和Firefox。
  • I have checked my server logs, Apache, FPM & MySql. 我已经检查了我的服务器日志,Apache,FPM和MySql。 No errors pertaining to this 没有与此相关的错误
  • Also tried disabling fpm and switching to default php 还尝试禁用fpm并切换到默认php
  • switched to php 5.6 but still the same issue 切换到PHP 5.6,但仍然是相同的问题

The only clue I have is this 我唯一的线索是

POST http://example.com/administrator/index.php?option=com_content&layout=edit&id=224 net::ERR_CONNECTION_RESET core.js:1 Joomla.submitform -> core.js:1 Joomla.submitbutton-> index.php?option=com_content&view=article&layout=edit&id=224:534 onclick-> index.php?option=com_content&view=article&layout=edit&id=224:502

--Update-- The issue only happens if onclick is part of a html tag. -更新-仅当onclick是html标记的一部分时,才会发生此问题。 It seems the HTML filtering portion of Joomla is the culprit, even though its set to No Filtering for SuperAdmins Joomla的HTML过滤部分似乎是罪魁祸首,即使将其设置为“不过滤SuperAdmins”

the bare minimujm text required for this issue to show up is 出现此问题所需的裸露的minimujm文本是

< onclick= >

The following variations are fine 以下变化很好

< onclick
< onclick=
< onclick >

Help please!! 请帮助!!

Turned out to be a restrictive firewall blocking the POST. 事实证明这是阻止POST的限制性防火墙。 Gonna have to move my listeners to the JS files and remove the onclick tags. 必须将我的侦听器移到JS文件并删除onclick标记。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM