ticket: normalize path for verification

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2021-11-11 15:07:12 +01:00 committed by Thomas Lamprecht
parent 3760a33cc8
commit 06b4a3b381

View File

@ -507,6 +507,8 @@ my $assemble_short_lived_ticket = sub {
my $verify_short_lived_ticket = sub { my $verify_short_lived_ticket = sub {
my ($ticket, $prefix, $username, $path, $noerr) = @_; my ($ticket, $prefix, $username, $path, $noerr) = @_;
$path = normalize_path($path);
my $secret_data = "$username:$path"; my $secret_data = "$username:$path";
my ($rsa_pub, $rsa_mtime) = get_pubkey(); my ($rsa_pub, $rsa_mtime) = get_pubkey();