baz/doc/SANITIZATION.md
Ari Archer f4ea9444ea
6.0.0-pre : improve wording, update only on version change, add baz_setup.sh
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
2023-02-13 00:20:57 +02:00

339 B

sanitization

i hate regex, its such a pain

  • Me, developing baz_sanitize function

basically, this sanitises stuff, this is what is not allowed

  • any whitespace
  • characters : ", ', ~, !, #, , /, $, %, ^, &, *, (, ), =
  • repeating ..s

regex ( sed syntax ):

s/\s*//g; s/[\"\'~\!#\\\/\$%\^&\*\(\)\=]//g; s/\.\.//g