2012-09-03 35 views
6

經過幾個小時的搜索錯誤,我找到了一個可重現的測試。它使用一個簡單的形式:奇怪的apache/PHP POST錯誤

<form name="test" method="POST" action="test.php"> 
    <textarea name="content"></textarea> 
    <input name="submit" type="submit" value="send"/> 
</form> 

與準確substring((SELECT填充textarea的,打的按鈕後「發送」服務器返回的一般錯誤:Connection with the server was reset while downloading 我看着HTTP的error_log但也有此報道。

使用:

Linux 2.6.32-220.23.1.el6.x86_64 
Build Date Jul 3 2012 
Server API Apache 2.0 Handler 
Apache Version Apache/2.2.15 (CentOS) 
Apache API Version 20051115 
PHP Version 5.3.3 

test.php的有沒有PHP代碼只存在形式。如果我將文件重命名爲test.html並更改action =「test.html」,則錯誤仍然相同。

測試在FF 15和Chrome 21,(ERR_CONNECTION_RESET)

螢火蟲:POST test.php的中止192.168.1.1 0 192.168.1.1:80


難道Apache是​​我的濾波發佈數據?我注意到,子((SELECT在幾個Apache漏洞提及。我如何禁用這種過濾器?

我看不到我的模塊的任何mod_security的。

+5

什麼是你的test.php? –

+2

爲我工作,沒有錯誤! –

+2

沒錯,我們展示了'test.php'或者我們不能十二月如果這與你的代碼有什麼關係。 – think123

回答

2

確保

echo '<pre>'; 
var_dump(apache_get_modules()); 

沒有列出的mod_security或其它與安全有關的模塊。