最近公司有用户反应系统表单的数据没有办法完整保存。测试后发现确实有问题,post提交表单后只能收到200个项目。查Apache日志发现如下记录:
[Fri Mar 11 11:34:13 2011] [error] [client 10.229.9.171] ALERT - configured POST variable limit exceeded - dropped variable 'test[]' (attacker '10.229.9.171', file '/web/www/Nerr/post.php'), referer: http://10.229.8.16/Nerr/post.php
查了些资料:
http://blog.motane.lu/2009/09/15/alert-configured-post-variable-limit-exceeded/
http://blog.yam.com/ymwen/article/15330907
两篇文章分别都提到了[suhosin],像第一篇中提到的,我的apache conf中没有suhosin,咋办内?Just create it,重起apache,搞定。
[suhosin] suhosin.request.max_vars = 1000 suhosin.post.max_vars = 1000
Comments