From 4bc24477876b9ffa9ebb93a3d9bf646a701a9dec Mon Sep 17 00:00:00 2001 From: Alangi Derick Date: Fri, 5 Oct 2018 15:22:15 +0100 Subject: [PATCH] Remove trailing spaces from IP addr in Special:DeletedContributions * Trim "target" to remove trailing spaces from IP address in Special:DeletedContributions that triggers MW internal error. Bug: T187619 Change-Id: Ic6b0d8020553ecce4dcf97f9c78487d3174444d8 --- includes/specials/SpecialDeletedContributions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialDeletedContributions.php b/includes/specials/SpecialDeletedContributions.php index 3f8771265d..e4672f8a01 100644 --- a/includes/specials/SpecialDeletedContributions.php +++ b/includes/specials/SpecialDeletedContributions.php @@ -73,7 +73,7 @@ class DeletedContributionsPage extends SpecialPage { $this->mOpts = $opts; - $target = $opts->getValue( 'target' ); + $target = trim( $opts->getValue( 'target' ) ); if ( !strlen( $target ) ) { $this->getForm(); -- 2.20.1