Amarjeet Singh created GUACAMOLE-371:
----------------------------------------

             Summary: While copying multi line text from OS clipboard to remote 
Clipboard all the CR (or CR/LF) are stripped out of the pasted text. 
                 Key: GUACAMOLE-371
                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-371
             Project: Guacamole
          Issue Type: Bug
          Components: guacamole-common-js
    Affects Versions: 0.9.13-incubating
         Environment: RDP of Windows Server 2012 R2 on Chrome Browser. 
Guacamole Version : 0.9.13-incubating
            Reporter: Amarjeet Singh


Text when copied from JS file from local Machine:

   function __send_blob(bytes) {
                
                
        var binary = "";
        // Produce binary string from bytes in buffer
        for (var i=0; i<bytes.byteLength; i++)
                {
                        binary += String.fromCharCode(bytes[i]);
                }
        // Send as base64
        stream.sendBlob(window.btoa(binary));
    }

*Text when pasted to RDP on Browser: *

function __send_blob(bytes) {                                   var binary = 
"";        // Produce binary string from bytes in buffer        for (var i=0; 
i<bytes.byteLength; i++)             {                       binary += 
String.fromCharCode(bytes[i]);                }        // Send as base64        
stream.sendBlob(window.btoa(binary));    }


 *As you can see this is stripping all the CR/LF out of pasted text.*



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to