GUACAMOLE-38: Don't try to encode URI before sending it to be parsed.

This commit is contained in:
Nick Couchman
2017-10-11 22:50:14 -04:00
parent 9946dca022
commit b49047cf78
2 changed files with 3 additions and 3 deletions

View File

@@ -92,9 +92,9 @@ public class QCParser {
if (userInfo != null && !userInfo.equals("")) { if (userInfo != null && !userInfo.equals("")) {
String[] authenticators = userInfo.split(":"); String[] authenticators = userInfo.split(":");
if (authenticators[0] != null) if (authenticators.length > 0 && authenticators[0] != null)
username = authenticators[0]; username = authenticators[0];
if (authenticators[1] != null) if (authenticators.length > 1 && authenticators[1] != null)
password = authenticators[1]; password = authenticators[1];
} }

View File

@@ -51,7 +51,7 @@ angular.module('guacQuickConnect').controller('quickconnectController', ['$scope
*/ */
$scope.quickConnect = function quickConnect() { $scope.quickConnect = function quickConnect() {
quickConnectService.createConnection(encodeURIComponent($scope.uri)) quickConnectService.createConnection($scope.uri)
.success(function createdConnection(connectionId) { .success(function createdConnection(connectionId) {
$location.url('/client/' + ClientIdentifier.toString({ $location.url('/client/' + ClientIdentifier.toString({
dataSource : 'quickconnect', dataSource : 'quickconnect',