Index: trunk/extensions/CentralNotice/special/SpecialCentralNotice.php |
— | — | @@ -1102,6 +1102,7 @@ |
1103 | 1103 | function addCampaign( $noticeName, $enabled, $start, $projects, |
1104 | 1104 | $project_languages, $geotargeted, $geo_countries ) |
1105 | 1105 | { |
| 1106 | + $noticeName = trim( $noticeName ); |
1106 | 1107 | if ( CentralNoticeDB::campaignExists( $noticeName ) ) { |
1107 | 1108 | $this->showError( 'centralnotice-notice-exists' ); |
1108 | 1109 | return null; |