MantisBT: master-1.3.x ba89d0e1

Author Committer Branch Timestamp Parent
dregad dregad master-1.3.x 2016-08-09 05:16 master-1.3.x b0389ec9
Affected Issues  0021410: text looks OK in edit of note but renders badly
Changeset

Prevent unwanted line breaks in

 tags

By default, Mantis wraps text within

 tags at 100 chars (see
$g_wrap_in_preformatted_text option).

If the text within the tag contains Unicode extended characters, the
regex performing the wrap does not count them properly, as pcre works on
bytes, causing line breaks to be added in the wrong place.

Adding 'u' modifier to the regex fixes the behavior, as suggested by
cproensa.

Fixes 0021410

mod - core/string_api.php Diff File