From fbb0ec640ac1c971da55491c68d32b82c984bc32 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Mon, 15 May 2017 09:31:07 +0200 Subject: [PATCH 1/1] api: fix rendering of filepath/string parameters MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 25d9bda94127b1a91181cd80bb9948093dea389b broke this check, but it is a better idea to check against the actual type rather then the rendered type text anyway. Signed-off-by: Fabian Grünbichler --- src/PVE/RESTHandler.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/RESTHandler.pm b/src/PVE/RESTHandler.pm index 961b253..119e26e 100644 --- a/src/PVE/RESTHandler.pm +++ b/src/PVE/RESTHandler.pm @@ -415,7 +415,7 @@ my $get_property_description = sub { $type = ''; } - if ($fileparams && $type eq 'string') { + if ($fileparams && $phash->{type} eq 'string') { foreach my $elem (@$fileparams) { if ($name eq $elem) { $type = ''; -- 2.39.2