简体   繁体   English

为什么“赌场”一词破坏了我的形式?

[英]Why does the word “casino” break my form?

Here's one that might get you scratching your heads - it certainly has me! 这可能会让您抓狂-它肯定有我!

I'm using a form to submit content to WordPress' 'update_post_meta' function. 我正在使用一种表单将内容提交到WordPress的“ update_post_meta”功能。

The form itself is pretty simple, just a range of input and textarea fields. 表单本身非常简单,只是一系列输入和textarea字段。 On submit the action directs to the same page where some PHP takes over to do validation on the $_POST info before submitting to Wordpress. 在提交时,操作将定向到同一页面,在此页面上,一些PHP会在提交给Wordpress之前接管$_POST信息的验证。 Now it all works perfectly, except one very strange bug: 现在,除了一个非常奇怪的错误之外,所有其他功能都可以正常运行:

Whenever you use the word 'casino' in any of the fields, instead of submitting the form, the page refreshes and throws up a 404 error , even though the address bar shows a perfectly valid URL! 每当您在任何字段中使用“赌场”一词时,即使地址栏显示的URL完全有效,页面也会刷新并抛出404 error ,而不是提交表单。 I don't believe it's my PHP code as I don't think we get that far in the process, so I'm thinking it's a server thing, but I can't imagine why. 我不认为这是我的PHP代码,因为我认为我们在过程中没有那么做,因此我认为这是服务器问题,但我无法想象为什么。 This happens on any form across the whole site and I've also got the same result on other sites hosted with the same hosting company (Namecheap, FYI). 整个网站上的任何形式都可能发生这种情况,在由同一托管公司(Namecheap,FYI)托管的其他网站上,我也得到了相同的结果。

So, the question is, can anyone suggest a reason why sending that word in particular to $_POST would break a form and cause that error? 因此,问题是,有人可以提出一个理由,特别是将该词发送到$_POST会破坏表格并导致该错误吗?

PS. PS。 I'm currently solving this using a replace() javascript function so 'casino' never gets sent with the form, but if the 'casion' issue can solved I would be very grateful. 我目前正在使用replace() javascript函数解决此问题,因此“ casino”永远不会随表格一起发送,但是如果“ casion”问题可以解决,我将不胜感激。 It would at least stop me puzzling over it. 至少这会让我不解。

This is because the probability of being recognized as spam is high. 这是因为被识别为垃圾邮件的可能性很高。 Casinos should be used well because there are many websites that cannot be used by the word itself. 应该很好地使用赌场,因为有很多网站本身不能使用这个词。 Using the language of other countries is one of the ways to promote it by openly saying "[우리카지노][1]" like me. 使用其他国家的语言是通过像我一样公开地说“ [우리카지] [1]”来推广该语言的方法之一。 I hope you will answer your question. 希望您能回答您的问题。

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

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