r103297 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103296‎ | r103297 | r103298 >
Date:04:51, 16 November 2011
Author:kaldari
Status:ok
Tags:
Comment:
trim whitespace from campaign names
Modified paths:
  • /trunk/extensions/CentralNotice/special/SpecialCentralNotice.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/special/SpecialCentralNotice.php
@@ -1102,6 +1102,7 @@
11031103 function addCampaign( $noticeName, $enabled, $start, $projects,
11041104 $project_languages, $geotargeted, $geo_countries )
11051105 {
 1106+ $noticeName = trim( $noticeName );
11061107 if ( CentralNoticeDB::campaignExists( $noticeName ) ) {
11071108 $this->showError( 'centralnotice-notice-exists' );
11081109 return null;

Follow-up revisions

RevisionCommit summaryAuthorDate
r107015MFT r103297, r104003, r104210, r104999, r105015, r105740, r105800, r106166, r...awjrichards23:56, 21 December 2011

Status & tagging log