How to escape/strip special characters in the LaTeX document?

Posted by Igor on Stack Overflow See other posts from Stack Overflow or by Igor
Published on 2010-03-29T22:10:14Z Indexed on 2010/03/29 22:13 UTC
Read the original article Hit count: 226

Filed under:
|
|
|

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

© Stack Overflow or respective owner

Related posts about latex

Related posts about php