From 5ecf258f2c9879db5bbd6fee0470c8eebfca0c02 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 25 Jun 2013 12:47:33 +0200 Subject: [PATCH] limit spice ticket length to 59 charachters --- PVE/API2/Qemu.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 53629b35..1ab42494 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -1371,6 +1371,9 @@ __PACKAGE__->register_method({ my $ticket = PVE::AccessControl::assemble_spice_ticket($authuser, $authpath); + # limit ticket length to 59 charachters + $ticket = substr($ticket, 0, 59); + my $timeout = 10; # Note: this only works if VM is on local node