forked from shaba/openuds
fix for proper escaping of conflicting chars in rdp credential redirection
This commit is contained in:
parent
6d9a6baa2a
commit
08038b5b90
@ -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…
Reference in New Issue
Block a user