From 3f97533e411ef80234e9919d944b561961a96431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez?= Date: Tue, 3 Jun 2014 11:50:58 +0000 Subject: [PATCH] Fixed FQDN domain transport form --- server/src/uds/transports/RDP/RDPTransport.py | 4 ++-- server/src/uds/transports/RDP/TSRDPTransport.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/uds/transports/RDP/RDPTransport.py b/server/src/uds/transports/RDP/RDPTransport.py index 96fead2d0..b83d89009 100644 --- a/server/src/uds/transports/RDP/RDPTransport.py +++ b/server/src/uds/transports/RDP/RDPTransport.py @@ -175,7 +175,7 @@ class RDPTransport(Transport): username, password, domain = '','','' if domain != '': - if domain.find('.') == -1: # Dotter domain form + if '.' in domain: # Dotter domain form username = username + '@' + domain domain = '' @@ -195,4 +195,4 @@ class RDPTransport(Transport): def getHtmlComponent(self, id, os, componentId): # We use helper to keep this clean return getHtmlComponent(self.__module__, componentId) - \ No newline at end of file + diff --git a/server/src/uds/transports/RDP/TSRDPTransport.py b/server/src/uds/transports/RDP/TSRDPTransport.py index d1e2b7691..46793db2e 100644 --- a/server/src/uds/transports/RDP/TSRDPTransport.py +++ b/server/src/uds/transports/RDP/TSRDPTransport.py @@ -163,7 +163,7 @@ class TSRDPTransport(Transport): username, password, domain = '','','' if domain != '': - if domain.find('.') == -1: # Dotter domain form + if '.' in domain: # Dotter domain form username = username + '@' + domain domain = ''