Username needs to be url encoded too.
[citadel.git] / webcit / static / instant_messenger.html
index d254e0ba4548db321e53faa5718e060284f2c9fa..59f9981d4a42ec90d0c0d9015c3c6bb1463ff238 100644 (file)
@@ -55,7 +55,7 @@ function SendSomething(which_div, sendform, recipient) {
 
        // Send the text to the server
        parms = 'r=' + Math.random()
-               + '&recp=' + recipient
+               + '&recp=' + encodeURIComponent(recipient)
                + '&msg=' + encodeURIComponent(thetext);
        new Ajax.Request('../ajax_send_instant_message',
                {