mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-38: Don't try to encode URI before sending it to be parsed.
This commit is contained in:
@@ -92,9 +92,9 @@ public class QCParser {
|
||||
|
||||
if (userInfo != null && !userInfo.equals("")) {
|
||||
String[] authenticators = userInfo.split(":");
|
||||
if (authenticators[0] != null)
|
||||
if (authenticators.length > 0 && authenticators[0] != null)
|
||||
username = authenticators[0];
|
||||
if (authenticators[1] != null)
|
||||
if (authenticators.length > 1 && authenticators[1] != null)
|
||||
password = authenticators[1];
|
||||
}
|
||||
|
||||
|
@@ -51,7 +51,7 @@ angular.module('guacQuickConnect').controller('quickconnectController', ['$scope
|
||||
*/
|
||||
$scope.quickConnect = function quickConnect() {
|
||||
|
||||
quickConnectService.createConnection(encodeURIComponent($scope.uri))
|
||||
quickConnectService.createConnection($scope.uri)
|
||||
.success(function createdConnection(connectionId) {
|
||||
$location.url('/client/' + ClientIdentifier.toString({
|
||||
dataSource : 'quickconnect',
|
||||
|
Reference in New Issue
Block a user