EBernhardson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/173077

Change subject: Bug: parenthesis are allowed in namespaces
......................................................................

Bug: parenthesis are allowed in namespaces

Bug: 73366
Change-Id: I7304046cfa7eda6356b2c61e716d76330cf1ee56
---
M includes/DiscussionParser.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo 
refs/changes/77/173077/1

diff --git a/includes/DiscussionParser.php b/includes/DiscussionParser.php
index 63dc2d9..99a610e 100644
--- a/includes/DiscussionParser.php
+++ b/includes/DiscussionParser.php
@@ -667,12 +667,12 @@
         * - First element is the position of the signature.
         * - Second element is the normalised user name.
         */
-       static function getUserFromLine( $line, $timestampPos ) {
+       static public function getUserFromLine( $line, $timestampPos ) {
                global $wgContLang;
 
                // lifted from Parser::pstPass2
                $tc = '[' . Title::legalChars() . ']';
-               $nc = '[ _0-9A-Za-z\x80-\xff-]'; // Namespaces can use non-ascii
+               $nc = '[() _0-9A-Za-z\x80-\xff-]'; // Namespaces can use 
non-ascii
 
                // [[ns:page]] with optional fragment(#foo) and/or pipe(|bar)
                $regex = "/\[\[($nc+:$tc+)(?:#.*?)?(?:\\|.*?)?]]/";

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7304046cfa7eda6356b2c61e716d76330cf1ee56
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>

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

Reply via email to