https://bugzilla.wikimedia.org/show_bug.cgi?id=45669

Brad Jorsch <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |code-update-regression
                 CC|                            |[email protected],
                   |                            |[email protected]
            Summary|Module page truncates very  |GeSHi uses a highly
                   |large modules               |recursive regex for number
                   |                            |highlighting

--- Comment #1 from Brad Jorsch <[email protected]> ---
This seems to be due to Gerrit change 49985, which also explains why it
suddenly screwed up upon crossing 200K.

For number highlighting, GeSHi uses a regex that includes
"(?!(?:<DOT>|(?>[^\<]))+>)". If there is too long of a run in the text without
anything being highlighted other than numbers, this can easily exceed the pcre
recursion limit (which is currently set very low on WMF wikis, see bug 36839
for a similar issue) and causes GeSHi to lose the entire chunk.

Possible fixes include changing that regex (defined on geshi/geshi.php line
2135) to "(?!(?:<DOT>|(?>[^\<]+))+>)" which is much less likely to hit the
recursion limit or disabling number highlighting along with string
highlighting.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to