Skip to content

Commit

Permalink
5708 removed /e flag from preg_replace
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrgay committed Aug 17, 2016
1 parent a66123a commit a511644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/lib/output.inc.php
Expand Up @@ -398,7 +398,7 @@ function AT_print($input, $name, $runtime_html = true) {
}

if (isset($_config['latex_server']) && $_config['latex_server']) {
$input = preg_replace('/\[tex\](.*?)\[\/tex\]/sie', "'<img src=\"'.\$_config['latex_server'].rawurlencode('$1').'\" align=\"middle\" alt=\"'.'$1'.'\" title=\"'.'$1'.'\">'", $input);
$input = preg_replace('/\[tex\](.*?)\[\/tex\]/si', "'<img src=\"'.\$_config['latex_server'].rawurlencode('$1').'\" align=\"middle\" alt=\"'.'$1'.'\" title=\"'.'$1'.'\">'", $input);
}

/* this has to be here, only because AT_FORMAT_HTML is the only check that has an else-block */
Expand Down

0 comments on commit a511644

Please sign in to comment.