We allow users to search for a database from a single text input, and I am having difficulty filtering some user strings.
For example, if the user sends:
lcd SONY
(Pay attention to?) I need to cancel the search.
I include a base64 encoded version of the above line so that it starts easily:
print(base64_decode("1MfLxc/RwdPHIGxjZCBTT05Z"));
I ignored such inputs before, but now (not sure why) I just realized that the mysql database query takes almost all the time to execute this, so now it has high priority.
Another example, to emphasize that we use utf-8 and mb_detect_encoding, does not help much:
print(base64_decode("zqDOm8+Fzr3PhM63z4HOuc6/IM+Bzr/Phc+HzyU=")); ΠΛυντηριο ρουχ %
So:
- How can I identify / filter these inputs?
- how is this input generated?
filter php validation unicode detect
zaf
source share