jenkins-bot has submitted this change and it was merged.

Change subject: Handle non-ascii URLs in fix-stats
......................................................................


Handle non-ascii URLs in fix-stats

Need to use rawurldecode

Change-Id: I432aec1452b8de748b67c2177c89e992a5996e84
---
M scripts/fix-stats.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Santhosh: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/fix-stats.php b/scripts/fix-stats.php
index 8eadd72..c88f0c3 100644
--- a/scripts/fix-stats.php
+++ b/scripts/fix-stats.php
@@ -99,7 +99,7 @@
 
                // ALERT: assumes certain URL pattern
                $cutoff = strpos( $url, '/wiki/' ) + 6;
-               $name = substr( $url, $cutoff );
+               $name = rawurldecode( substr( $url, $cutoff ) );
 
                $title = Title::newFromText( $name );
                if ( !$title ) {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I432aec1452b8de748b67c2177c89e992a5996e84
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: 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

Reply via email to