Anomie has uploaded a new change for review.
https://gerrit.wikimedia.org/r/279727
Change subject: API: Normalize input URL in ApiQueryExtLinksUsage
......................................................................
API: Normalize input URL in ApiQueryExtLinksUsage
This matches the behavior of Special:LinkSearch, and makes it more
likely to give sensible results for non-normalized input.
Bug: T130912
Change-Id: I2f60dd48fdfc24108110a24ad41b297ece7f33df
---
M includes/api/ApiQueryExtLinksUsage.php
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/27/279727/1
diff --git a/includes/api/ApiQueryExtLinksUsage.php
b/includes/api/ApiQueryExtLinksUsage.php
index 404fc19..9b05537 100644
--- a/includes/api/ApiQueryExtLinksUsage.php
+++ b/includes/api/ApiQueryExtLinksUsage.php
@@ -66,6 +66,9 @@
$this->addWhereFld( 'page_namespace',
$params['namespace'] );
}
+ // Normalize query to match the normalization applied for the
externallinks table
+ $query = Parser::normalizeLinkUrl( $query );
+
$whereQuery = $this->prepareUrlQuerySearchString( $query,
$protocol );
if ( $whereQuery !== null ) {
--
To view, visit https://gerrit.wikimedia.org/r/279727
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2f60dd48fdfc24108110a24ad41b297ece7f33df
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits