]> git.proxmox.com Git - pve-http-server.git/commitdiff
extract_auth_cookie: always call uri_unescape($ticket)
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 16 Jan 2017 13:24:21 +0000 (14:24 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 16 Jan 2017 13:24:21 +0000 (14:24 +0100)
should not harm.

PVE/APIServer/Formatter.pm

index fa26756fd88c86aa1537074d8e96f6e1f02633a0..0c459bdc95fb2125cfc26e4ecb16f20ae90c0193 100644 (file)
@@ -82,9 +82,7 @@ sub extract_auth_cookie {
 
     my $ticket = ($cookie =~ /(?:^|\s)\Q$cookie_name\E=([^;]*)/)[0];
 
-    if ($ticket && $ticket =~ m/^PVE%3A/) {
-       $ticket = uri_unescape($ticket);
-    }
+    $ticket = uri_unescape($ticket) if $ticket;
 
     return $ticket;
 }