mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
Encode mimetypes for URIs.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user