Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent unwanted line breaks in <pre> tags
By default, Mantis wraps text within <pre> 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 #21410
- Loading branch information