<textarea> causing 404 error on particular inputs
I've come across a weird problem. I have a simple form which submits data to a php processor page. However, the following input to the description field causes a 404 Error.
To recognize and reward the best in Indian theatre, The Mahindra and Mahindra presents META (Mahindra Excellence in Theatre Awards). The only award of its kind, META is designed to showcase the best in theatre being produced in India. An eminent selection开发者_StackOverflow中文版 committee shortlists the 10 best plays from innumerable entries from all across India. These plays are staged and adjudged under 13 award categories. The festival culminates with an scintillating awards ceremnony. Entering its sixth year, META’s objective remains to encourage all aspects of theatre craft such as playwriting, set, costume and light design, direction and performance and promoting theatre.
I've tried changing the apostrophes and commas, even the brackets, but it didn't help. The code for the form:
<form class="cms" action="add.php" enctype="multipart/form-data" method="post">
<table>
<tr>
<td class="text">
Title
</td>
<td class="input">
<input type="text" size="20" name="title" value="" />
</td>
</tr>
<tr>
<td class="text">
Date
</td>
<td class="input">
<input type="text" size="20" name="date" value="" />
</td>
</tr>
<tr>
<td class="text">
Image
</td>
<td class="input">
<input type="file" name="image" />
</td>
</tr>
<tr>
<td class="text">
Description
</td>
<td class="input">
<textarea name="description" rows="5" cols="20"></textarea>
</td>
</tr>
<tr>
<td class="text">
Link
</td>
<td class="input">
<input type="text" size="20" name="link" value="" />
</td>
</tr>
<tr>
<td class="text">
<input type="submit" value="Add / Save" />
</td>
<td>
<input type="reset" value="Clear" />
</td class="input">
</tr>
</table>
</form>
On submitting the text above i get the following error :
Not Found The requested URL /cms/events/add.php was not found on this server.
Apache/1.3.41 Server at www.xyzs.in Port 80
Is this a problem with the text-encoding?
Could the add.php page contain an execute, maybe for an error page if the input is to long and the 404 is because the error page is not there?
I have seen similar errors in ASP where execute "" was used to load another page and if that page was not found you got an error, but exactly which error can differ from server implementation.
Also, does this work with other input with shorter or same length?
For someone else with Similar Issue:
Your text contains sensitive keywords
which cause 404
. Last night I got similar issue with text area, After deep analyzing I found that my text contains a keyword "Select", When I remove it submits successfully. In your case keyword "META" might causing this error.
What you have to do is white list these sensitive keywords
from your server
by contacting your server
administrator
.
精彩评论