Author: xGJZ4PX7OxwDENAFc
Description:
math.php is not compatible with php safe_mode.
$contents = `$cmd`; wfDebug( "TeX output:\n $contents\n---\n" );
using backticks is forbidden in safe_mode:
PHP Warning: shell_exec(): Cannot execute using backquotes in Safe Mode in
/var/www/wiki/public_html/includes/Math.php on line 75
please consider using popen() instead. it is easy to do and compatible with
safe_mode:
$phandle = popen( $cmd );
$contents = fgets( $phandle );
fclose( $phandle );
Version: unspecified
Severity: normal