Dan-nl has uploaded a new change for review.

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

Change subject: make sure unicode characters are normalized
......................................................................

make sure unicode characters are normalized

Bug: 62870
Change-Id: I7f3fa5ac572938602e915c22a47d2e7f7e61caaf
---
M includes/Utils.php
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GWToolset 
refs/changes/97/121097/1

diff --git a/includes/Utils.php b/includes/Utils.php
index 7ce0276..fb0b656 100644
--- a/includes/Utils.php
+++ b/includes/Utils.php
@@ -337,6 +337,8 @@
         * @return {string|null}
         */
        public static function sanitizeString( $string, array $options = 
array() ) {
+               global $wgContLang;
+
                // is_string thought some form fields were booleans instead of 
strings
                if ( !gettype( $string ) === 'string' ) {
                        throw new MWException(
@@ -353,6 +355,8 @@
                        $result = null;
                }
 
+               $result = $wgContLang->normalize( $result );
+
                return $result;
        }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7f3fa5ac572938602e915c22a47d2e7f7e61caaf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GWToolset
Gerrit-Branch: master
Gerrit-Owner: Dan-nl <[email protected]>

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

Reply via email to