Index: trunk/extensions/CentralNotice/SpecialBannerController.php |
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | var geoLocation = Geo.country; // pull the geo info |
69 | 69 | } |
70 | 70 | var bannerListQuery = $.param( { 'language': wgContentLanguage, 'project': wgNoticeProject, 'country': geoLocation } ); |
71 | | - var bannerListURL = wgScript + '?title=' + wgFormattedNamespaces[-1] + ':BannerListLoader&cache=/cn.js&' + bannerListQuery; |
| 71 | + var bannerListURL = wgScript + '?title=' + encodeURIComponent(wgFormattedNamespaces[-1]) + ':BannerListLoader&cache=/cn.js&' + bannerListQuery; |
72 | 72 | var request = $.ajax( { |
73 | 73 | url: bannerListURL, |
74 | 74 | dataType: 'json', |