character translation in search
|Assignee:||Dong Ma||% Done:||
|Target version:||2.1.0||Estimated time:||16.00 hours|
Entering some search filenames requires you to enter character sequences that are translated. For example, search for the file name daemon and the leading %da will get translated to:
<INPUT type='text' name='filename' size='40' value='Úemon%'>
(see attached file).
The webpage charset is UTF-8, changing it to us-ascii would not be desirable nor did it fix the problem. If we can't come up with an elegant solution, I recommend changing the wildcard from % to *. The code would have to do the reverse when generating the sql since postgres expects %.
- Status changed from New to Resolved
Fixed in revision5930.
Caused by $Filename = GetParm("filename",PARM_STRING); PARM_STRING use urldecode() function to decode any %## encoding in the given string.