r76667 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76666‎ | r76667 | r76668 >
Date:19:19, 14 November 2010
Author:ashley
Status:deferred
Tags:
Comment:
SocialProfile: fix bug that made it impossible to send a board message from the user's profile to a user who had "quotes" in their username. Thanks to Nicmavr for spotting this bug.
Modified paths:
  • /trunk/extensions/SocialProfile/UserProfile/UserProfilePage.js (modified) (history)

Diff [purge]

Index: trunk/extensions/SocialProfile/UserProfile/UserProfilePage.js
@@ -3,7 +3,7 @@
44 */
55 var posted = 0;
66 function send_message() {
7 - var userTo = document.getElementById( 'user_name_to' ).value;
 7+ var userTo = decodeURIComponent( wgTitle ); //document.getElementById( 'user_name_to' ).value;
88 var encMsg = encodeURIComponent( document.getElementById( 'message' ).value );
99 var msgType = document.getElementById( 'message_type' ).value;
1010 if( document.getElementById( 'message' ).value && !posted ) {

Status & tagging log