From 9ecc949c682146d141584a9aa6358c828a248496 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 14 Apr 2023 17:44:42 +0200 Subject: [PATCH] bootstrap formater: fix one-argument "bless" and code style Signed-off-by: Thomas Lamprecht --- src/PVE/APIServer/Formatter/Bootstrap.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PVE/APIServer/Formatter/Bootstrap.pm b/src/PVE/APIServer/Formatter/Bootstrap.pm index 9fb7785..2558703 100644 --- a/src/PVE/APIServer/Formatter/Bootstrap.pm +++ b/src/PVE/APIServer/Formatter/Bootstrap.pm @@ -2,9 +2,10 @@ package PVE::APIServer::Formatter::Bootstrap; use strict; use warnings; -use URI::Escape; + use HTML::Entities; use JSON; +use URI::Escape; # FIXME: remove console code?? @@ -67,7 +68,7 @@ sub new { cookie_name => $config->{cookie_name}, apitoken_name => $config->{apitoken_name}, js => '', - }; + }, $class; if (my $username = $auth->{userid}) { $self->{csrftoken} = $config->{csrfgen_func}->($username);