jenkins-bot has submitted this change and it was merged.
Change subject: BsCommonAJAXInterface: Fixed issue with special Characters
......................................................................
BsCommonAJAXInterface: Fixed issue with special Characters
Function getTitleStoreData replaced strtolower with
SearchEngine::normalizeText because strtolower is not compatible to
multibyte characters.
Change-Id: I5a585a1fbd97cdcc3633c07d21463466cb1e2b16
---
M includes/CommonAJAXInterface.php
1 file changed, 4 insertions(+), 3 deletions(-)
Approvals:
Tweichart: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/CommonAJAXInterface.php b/includes/CommonAJAXInterface.php
index 8cc321b..c383da8 100644
--- a/includes/CommonAJAXInterface.php
+++ b/includes/CommonAJAXInterface.php
@@ -98,9 +98,10 @@
// so multi term queries also bring results
$sOp = $dbr->anyString();
$aLike = array( '', $sOp );
- $sParams = explode( ' ', strtolower( $oQueryTitle->getText() )
);
- foreach ( $sParams as $sParam ) {
- $aLike[] = $sParam;
+ $aParams = explode( ' ', $oQueryTitle->getText() );
+ $oSearchEngine = SearchEngine::create();
+ foreach ( $aParams as $sParam ) {
+ $aLike[] = $oSearchEngine->normalizeText( $sParam );
$aLike[] = $sOp;
}
--
To view, visit https://gerrit.wikimedia.org/r/236006
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I5a585a1fbd97cdcc3633c07d21463466cb1e2b16
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: REL1_23
Gerrit-Owner: Tweichart <[email protected]>
Gerrit-Reviewer: Dvogel hallowelt <[email protected]>
Gerrit-Reviewer: Tweichart <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits