REST handler: get property description: escape curly braces for asciidoc

Text enclosed in unescaped curly braces will be interpreted as an
attribute reference breaking and e.g. lead to the description not
showing up at all a generated man page further down the line.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2022-04-07 12:05:38 +02:00 committed by Thomas Lamprecht
parent 7b7e669e77
commit 6c19a10dd9

View File

@ -517,6 +517,9 @@ my $get_property_description = sub {
chomp $wdescr;
$wdescr =~ s/^$/+/mg;
$wdescr =~ s/{/\\{/g;
$wdescr =~ s/}/\\}/g;
$res .= $wdescr . "\n";
if (my $req = $phash->{requires}) {