]> code.citadel.org Git - citadel.git/commitdiff
Changes to instant messenger javascript
authorArt Cancro <ajc@citadel.org>
Thu, 2 Oct 2008 02:51:53 +0000 (02:51 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 2 Oct 2008 02:51:53 +0000 (02:51 +0000)
to accomodate unicode characters

webcit/static/instant_messenger.html

index 0ecdcc772d6c99622e1266fa3cba86451e868a5d..a78fc57cd388354dbf0a17b898fc62ce46e5c762 100644 (file)
@@ -47,7 +47,7 @@ function SendSomething(which_div, sendform, recipient) {
 
        // Send the text to the server
        parms = 'r=' + Math.random()
-               + '&g_cmd=SEXP ' + recipient + '|-\n' + escape(thetext);
+               + '&g_cmd=SEXP ' + recipient + '|-&g_input=' + encodeURIComponent(thetext);
        new Ajax.Request('../ajax_servcmd',
                {
                        method: 'post',