]> git.proxmox.com Git - qemu-server.git/commitdiff
limit spice ticket length to 59 charachters
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 25 Jun 2013 10:47:33 +0000 (12:47 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 25 Jun 2013 10:47:33 +0000 (12:47 +0200)
PVE/API2/Qemu.pm

index 53629b35f9806525ca7e93fd9bbf1aced64975cd..1ab42494d5ccfba54e352c45fc24da242bbe2be3 100644 (file)
@@ -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