1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +03:00

Small fix so HTML5 Transport remove leading/trailing whitespaces

This commit is contained in:
Adolfo Gómez García 2016-06-13 11:39:07 +02:00
parent 4196883bfb
commit 8b2df76582

View File

@ -77,6 +77,7 @@ class HTML5RDPTransport(Transport):
def initialize(self, values):
if values is None:
return
self.guacamoleServer.value = self.guacamoleServer.value.strip()
if self.guacamoleServer.value[0:4] != 'http':
raise Transport.ValidationException(_('The server must be http or https'))