Aude has uploaded a new change for review. https://gerrit.wikimedia.org/r/97170
Change subject: Allow query campaign api to work for campaigns with space in their names ...................................................................... Allow query campaign api to work for campaigns with space in their names Bug: 57373 Change-Id: I0cdaabea1a9bf6aa87ebcc4250c1633deccfb625 --- M api/ApiCentralNoticeQueryCampaign.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralNotice refs/changes/70/97170/1 diff --git a/api/ApiCentralNoticeQueryCampaign.php b/api/ApiCentralNoticeQueryCampaign.php index ca4adfb..e5a22bc 100644 --- a/api/ApiCentralNoticeQueryCampaign.php +++ b/api/ApiCentralNoticeQueryCampaign.php @@ -6,7 +6,7 @@ * @var string sanitize campaign name * FIXME: the string is apparently unrestricted in Special:CentralNotice */ - const CAMPAIGNS_FILTER = '/[a-zA-Z0-9_|\-]+/'; + const CAMPAIGNS_FILTER = '/[a-zA-Z0-9 _|\-]+/'; public function execute() { // Obtain the ApiResults object from the base -- To view, visit https://gerrit.wikimedia.org/r/97170 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0cdaabea1a9bf6aa87ebcc4250c1633deccfb625 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CentralNotice Gerrit-Branch: master Gerrit-Owner: Aude <aude.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits