How to escape/strip special characters in the LaTeX document?
- by Igor
We implemented the online service where it is possible to generate PDF with predefined
structure. User can choose a LaTeX template and then compile it with an appropriate inputs.
The question we worry about is the security, that the malicious user was not able to gain shell access through the injection of special instruction into latex document.
We need some workaround for this or at least a list of special characters that we should strip from the input data.
Preferred language would be PHP, but any suggestions, constructions and links are very welcomed.
PS. in few word we're looking form mysql_real_escape_string for LaTeX