Nikerabbit has uploaded a new change for review.
https://gerrit.wikimedia.org/r/197311
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(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation
refs/changes/11/197311/1
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: newchange
Gerrit-Change-Id: I432aec1452b8de748b67c2177c89e992a5996e84
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits