From: Evan Broder Date: Sun, 9 Nov 2008 06:20:30 +0000 (-0500) Subject: Strip the whitespace from the VNC authtoken X-Git-Tag: 0.0.9~17 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/48801b942044c030602aa34be884e5674beb1601?ds=sidebyside Strip the whitespace from the VNC authtoken svn path=/trunk/packages/invirt-web/; revision=1578 --- diff --git a/code/main.py b/code/main.py index 452a285..3c20902 100755 --- a/code/main.py +++ b/code/main.py @@ -245,7 +245,7 @@ def vnc(username, state, path, fields): """ machine = validation.Validate(username, state, machine_id=fields.getfirst('machine_id')).machine - token = controls.remctl('control', machine.name, 'vnctoken') + token = controls.remctl('control', machine.name, 'vnctoken').strip() host = controls.listHost(machine) if host: port = 10003 + [h.hostname for h in config.hosts].index(host)