Extension talk:Mimetex alternative

What is the reason for using tex tags instead of math tags for this? I would like to be able to copy content from a wikipedia page, and not have to modify the tags. I've tried changing the hook in mimetex.php, and that did not work. Does anyone know how to get mimetex to work with math tags?

i second the question.87.116.212.130 04:05, 14 March 2009 (UTC)

Security Question
Is such extention safe? I mean the PHP code just make unescaped substitution

function render_Mimetex($input, $argv, $parser = null) { if (!$parser) $parser =& $GLOBALS['wgParser']; // $img_url is the url the mimetex will be sent to. // IMPORTANT!! The URL below should be the link to YOUR mimetex.cgi if possible $img_url = "http://www.forkosh.dreamhost.com/mimetex.cgi?".$input; // Sets the output of the tex tag using the url from above, and the input as // the Alt text. It's important to note that there is no error output added yet. $output = ""; return $output; }

So, let suppose that $input is "... .cgi?\">some injection code < "

Then $output is:

some injection code

Do the MediaWiki escape the value of the $output? Or the Injection code will be substituted into page directly?