Skip to content

Commit

Permalink
AdminTable: Only trim hash keys after selecting values
Browse files Browse the repository at this point in the history
  • Loading branch information
asdil12 authored and kalikiana committed Oct 4, 2024
1 parent 43db3ce commit 5b70180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OpenQA/WebAPI/Controller/API/V1/Table.pm
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ sub _prepare_settings {
my @keys;
if ($hp->{settings}) {
for my $k (keys %{$hp->{settings}}) {
$k = trim $k;
my $value = trim $hp->{settings}->{$k};
$k = trim $k;
$k =~ s/[^\]\[0-9a-zA-Z_\+]//g;
push @settings, {key => $k, value => $value};
push @keys, $k;
Expand Down

0 comments on commit 5b70180

Please sign in to comment.