jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/343215 )

Change subject: Plaster-over regex compilation failure
......................................................................


Plaster-over regex compilation failure

Caused by 3e32d21210362b9a050862e28b75a11a52b6021e.

Bug: T159881
Change-Id: I8504fdc7473710c2fed1663720784e1a355eaf19
---
M backend/CodeCommentLinker.php
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Reedy: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/backend/CodeCommentLinker.php b/backend/CodeCommentLinker.php
index abcb95b..f2fddd8 100644
--- a/backend/CodeCommentLinker.php
+++ b/backend/CodeCommentLinker.php
@@ -20,7 +20,9 @@
        function link( $text ) {
                # Catch links like 
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/44245#c829
                # Ended by space or brackets (like those pesky <br /> tags)
-               $text = preg_replace_callback( '/(^|[^\w[])(' . 
wfUrlProtocolsWithoutProtRel() . ')(' . Parser::EXT_LINK_URL_CLASS . '+)/',
+               $EXT_LINK_URL_CLASS = '[^][<>"\\x00-\\x20\\x7F\p{Zs}]';
+
+               $text = preg_replace_callback( '/(^|[^\w[])(' . 
wfUrlProtocolsWithoutProtRel() . ')(' . $EXT_LINK_URL_CLASS . '+)/',
                        array( $this, 'generalLink' ), $text );
                $text = preg_replace_callback( '/\br(\d+)\b/',
                        array( $this, 'messageRevLink' ), $text );

-- 
To view, visit https://gerrit.wikimedia.org/r/343215
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I8504fdc7473710c2fed1663720784e1a355eaf19
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CodeReview
Gerrit-Branch: wmf/1.29.0-wmf.16
Gerrit-Owner: Reedy <[email protected]>
Gerrit-Reviewer: 20after4 <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to