You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The search sanitization seems a bit strange to me. Why is ' being escaped? Why is \n being removed? And filtering unexpected characters to . rather than rejecting the search seems odd. The list of allowed characters is also missing +.
The text was updated successfully, but these errors were encountered:
the main reason of this whitelist was a quick & dirty protection for system calls
I'm open to better ideas, adding + seems sane
The replacement by '.' allow you to view some results close to your original search, rather than no result at all. Maybe this should be mentioned somewhere in the result when doing so
The arguments end up being passed using the list form of exec. There shouldn't be any need for sanitization, unless you want to restrict what regexes can be used.
The search sanitization seems a bit strange to me. Why is
'
being escaped? Why is\n
being removed? And filtering unexpected characters to.
rather than rejecting the search seems odd. The list of allowed characters is also missing+
.The text was updated successfully, but these errors were encountered: