MantisBT: master fb76435b

Author Committer Branch Timestamp Parent
dregad dregad master 2014-05-07 07:28 master 63ee2cd9
Affected Issues  0017292: Use of deprecated PREG_REPLACE_EVAL ('e') pattern modifier
Changeset

Remove use of deprecated pattern modifier in string_insert_hrefs()

string_insert_hrefs() relied on PREG_REPLACE_EVAL ('e') pattern modifier
for preg_replace() to apply rtrim() function to subpatterns.

In PHP 5.5, this feature has been deprecated for security reasons [1] so
we rely on preg_replace_callback() instead.

Fixes 0017292

[1] http://php.net/reference.pcre.pattern.modifiers.php#reference.pcre.pattern.modifiers.eval

mod - core/string_api.php Diff File