Mwalker has submitted this change and it was merged. 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(-) Approvals: PiRSquared17: Looks good to me, but someone else must approve Mwalker: Looks good to me, approved jenkins-bot: Verified 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: merged Gerrit-Change-Id: I0cdaabea1a9bf6aa87ebcc4250c1633deccfb625 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CentralNotice Gerrit-Branch: master Gerrit-Owner: Aude <aude.w...@gmail.com> Gerrit-Reviewer: Adamw <awi...@wikimedia.org> Gerrit-Reviewer: Mwalker <mwal...@wikimedia.org> Gerrit-Reviewer: PiRSquared17 <pirsquare...@gmail.com> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits