Skizzerz has submitted this change and it was merged.

Change subject: fix bug
......................................................................


fix bug

Change-Id: Ic5d5f899c3ad8283122baa6839ecfe75c9f5572f
---
M RegexFunctions.php
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Skizzerz: Verified; Looks good to me, approved



diff --git a/RegexFunctions.php b/RegexFunctions.php
index 4c98b4b..42cb84f 100644
--- a/RegexFunctions.php
+++ b/RegexFunctions.php
@@ -5,7 +5,7 @@
  * @file
  * @ingroup Extensions
  * @author Ryan Schmidt
- * @version 1.4.2
+ * @version 1.4.3
  * @license http://en.wikipedia.org/wiki/Public_domain Public domain
  * @link http://www.mediawiki.org/wiki/Extension:RegexFunctions Documentation
  */
@@ -20,7 +20,7 @@
        'path' => __FILE__,
        'name' => 'RegexFunctions',
        'author' => 'Ryan Schmidt',
-       'version' => '1.4.2',
+       'version' => '1.4.3',
        'descriptionmsg' => 'regexfunctions-desc',
        'url' => 'https://www.mediawiki.org/wiki/Extension:RegexFunctions',
 );
@@ -156,7 +156,7 @@
                        return;
                }
                $pattern = self::sanitize(
-                       $pattern,
+                       str_replace(chr(0), '', $pattern),
                        $wgRegexFunctionsAllowModifiers,
                        $wgRegexFunctionsAllowE
                );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic5d5f899c3ad8283122baa6839ecfe75c9f5572f
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/RegexFunctions
Gerrit-Branch: master
Gerrit-Owner: Pastakhov <[email protected]>
Gerrit-Reviewer: Skizzerz <[email protected]>

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

Reply via email to