r63761 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63760‎ | r63761 | r63762 >
Date:00:17, 15 March 2010
Author:werdna
Status:deferred
Tags:
Comment:
LiquidThreads: add URL encoding to URLs on Special:NewMessages
Modified paths:
  • /trunk/extensions/LiquidThreads/newmessages.js (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/newmessages.js
@@ -25,6 +25,7 @@
2626 var titleSel = '.lqt-thread-topmost > .lqt-thread-title-metadata';
2727 var subject = right_col.find('h3').text();
2828 var title = right_col.find(titleSel).val();
 29+ title = encodeURIComponent(title);
2930 var url = wgArticlePath.replace( '$1', title );
3031 var link = $j('<a/>').attr('href', url).text(subject);
3132 elem.append(link);

Status & tagging log