* In the JS instant messenger window, encode all outgoing messages using encodeURICom...
authorArt Cancro <ajc@citadel.org>
Fri, 20 Mar 2009 02:39:55 +0000 (02:39 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 20 Mar 2009 02:39:55 +0000 (02:39 +0000)
webcit/static/instant_messenger.html

index b86cb5a62e8293d0f93dcfb2e44d55372226847f..3526613efe05d855f9dbe055b848af79feec9ef6 100644 (file)
@@ -56,7 +56,7 @@ function SendSomething(which_div, sendform, recipient) {
        // Send the text to the server
        parms = 'r=' + Math.random()
                + '&recp=' + recipient
-               + '&msg=' + escape(thetext);
+               + '&msg=' + encodeURIComponent(thetext);
        new Ajax.Request('../ajax_send_instant_message',
                {
                        method: 'post',