forked from shaba/openuds
Merge pull request #57 from danitorregrosa/escape-conflicting-chars-rdp-credential-redirection
fix for proper escaping of conflicting chars in rdp credential redire…
This commit is contained in:
commit
302b9a85d5
@ -105,6 +105,9 @@ class RDPTransport(BaseRDPTransport):
|
||||
ci = self.getConnectionInfo(userService, user, password)
|
||||
username, password, domain = ci['username'], ci['password'], ci['domain']
|
||||
|
||||
# escape conflicting chars
|
||||
password = password.replace('\\', '\\\\').replace('"', '\\"').replace("'", "\\'")
|
||||
|
||||
# width, height = CommonPrefs.getWidthHeight(prefs)
|
||||
# depth = CommonPrefs.getDepth(prefs)
|
||||
width, height = self.screenSize.value.split('x')
|
||||
|
@ -124,6 +124,9 @@ class TRDPTransport(BaseRDPTransport):
|
||||
ci = self.getConnectionInfo(userService, user, password)
|
||||
username, password, domain = ci['username'], ci['password'], ci['domain']
|
||||
|
||||
# escape conflicting chars
|
||||
password = password.replace('\\', '\\\\').replace('"', '\\"').replace("'", "\\'")
|
||||
|
||||
# width, height = CommonPrefs.getWidthHeight(prefs)
|
||||
# depth = CommonPrefs.getDepth(prefs)
|
||||
width, height = self.screenSize.value.split('x')
|
||||
|
Loading…
x
Reference in New Issue
Block a user