jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
BryanDavis: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I7f3fa5ac572938602e915c22a47d2e7f7e61caaf
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/GWToolset
Gerrit-Branch: master
Gerrit-Owner: Dan-nl <[email protected]>
Gerrit-Reviewer: Brian Wolff <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: Jarekt <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Santhosh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits