From 4ac8a4b57cbefd238bb2478f41f53ba55249dabf Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 28 Oct 2012 00:07:32 -0700 Subject: [PATCH] Encode mimetypes for URIs. --- guacamole/src/main/webapp/client.xhtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guacamole/src/main/webapp/client.xhtml b/guacamole/src/main/webapp/client.xhtml index cafd9a8ac..3c4bfb5b0 100644 --- a/guacamole/src/main/webapp/client.xhtml +++ b/guacamole/src/main/webapp/client.xhtml @@ -164,12 +164,12 @@ // Add audio mimetypes to connect_string GuacamoleUI.supportedAudio.forEach(function(mimetype) { - connect_string += "&audio=" + mimetype; + connect_string += "&audio=" + encodeURIComponent(mimetype); }); // Add video mimetypes to connect_string GuacamoleUI.supportedVideo.forEach(function(mimetype) { - connect_string += "&video=" + mimetype; + connect_string += "&video=" + encodeURIComponent(mimetype); }); guac.connect(connect_string);