Answer the question
In order to leave comments, you need to log in
Bug or Feature Autocomplete on the site?
Hello everyone
To create auto-completion on the site, it is often used
SELECT field FROM table WHERE field LIKE 'SOME_STRING%'
Answer the question
In order to leave comments, you need to log in
I think it's still worth escaping such characters. But the feature can be left. Let's say assign it to another combination and move it all into some neat helper.
How in general it is possible to forbid unescaped input to the user?
It depends on the. For example, now we have a UI for asteriska for our own people and they use % and _ with might and main, but for a public service it’s better not to, otherwise the user will get an incomprehensible qualification for him if the same % suddenly pops up in the data.
> So often the characters % and _ are not replaced and not escaped, which leads to the following:
This is the usual inattention of the developers, these characters must be escaped and they will work as intended.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question