Uploaded image for project: 'Guacamole'
  1. Guacamole
  2. GUACAMOLE-1215

Backslash not properly escaped in server-generated JSON

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.0
    • 1.4.0
    • guacamole-server
    • None

    Description

      When searching the file list using SFTP, an error occurs when the file name or directory name contains a backslash.

      An error occurs when calling the javascript JSON.parse() function, and for this reason, the entire file list is not displayed in the Devices menu (Alt+Ctrl+Shift).

      Temporarily removing the backslash from the file name or directory name is effective, but I think that special characters should be escaped.

      Attach the tested file name and error location.

      1. File name: test\123
      2. Error location

       

      // guacamole-common-js/src/main/webapp/modules/JSONReader.js
      this.getJSON = function getJSON() {
              return JSON.parse(json);
      };
      

       

      Thanks.

       

      Attachments

        Activity

          People

            vnick Nick Couchman
            kwanghee83.lee kwangheelee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: