如何解决输入包含 "select from" 关键字的 html 表单提交?
How to solve html form submission with input containing "select from" keywords?
此问题仅在服务器端而非本地主机上出现。
当提交一个简单的表单时,一个textarea包含顺序包含"select"和"from"两个关键字,甚至用多个单词分隔;表单提交显示以下错误:
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Additionally, a 500 Internal Server Error error was encountered while
trying to use an ErrorDocument to handle the request.
即使使用以下句子也会产生此错误:"The selection of this team will be from the list ...",因为 "selection" 中包含单词 "select" 并后跟 "from" 关键字。
唯一的临时解决方案是使用大写的"select"或"from"来防止内部服务器错误。但是,这不是我需要的。我需要一个合理的方案来解决它。
如果问题出在服务器端,则可能取决于您用来提交表单数据的方法。
首先,请仔细查看文档here。
The GET Method
GET is used to request data from a specified resource.
The POST Method
POST is used to send data to a server to create/update a resource.
The PUT Method
PUT is used to send data to a server to create/update a resource.
这通常是由您的服务器的防火墙引起的。要解决它,您需要检查错误日志文件并查看提供的错误是什么,然后您必须为此错误添加一个例外。
如果您觉得很难完成,您可以联系您的服务器支持,他们可以为您完成。希望这可以帮助。
此问题仅在服务器端而非本地主机上出现。
当提交一个简单的表单时,一个textarea包含顺序包含"select"和"from"两个关键字,甚至用多个单词分隔;表单提交显示以下错误:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
即使使用以下句子也会产生此错误:"The selection of this team will be from the list ...",因为 "selection" 中包含单词 "select" 并后跟 "from" 关键字。
唯一的临时解决方案是使用大写的"select"或"from"来防止内部服务器错误。但是,这不是我需要的。我需要一个合理的方案来解决它。
如果问题出在服务器端,则可能取决于您用来提交表单数据的方法。
首先,请仔细查看文档here。
The GET Method
GET is used to request data from a specified resource.
The POST Method
POST is used to send data to a server to create/update a resource.
The PUT Method
PUT is used to send data to a server to create/update a resource.
这通常是由您的服务器的防火墙引起的。要解决它,您需要检查错误日志文件并查看提供的错误是什么,然后您必须为此错误添加一个例外。 如果您觉得很难完成,您可以联系您的服务器支持,他们可以为您完成。希望这可以帮助。