Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Sep 16, 2024
1 parent 93ad7a8 commit 579890c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion t/083-xss.t
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ my $whitelist_vars = Thruk::Base::array2hash([qw/
c.config.jquery_ui c.config.start_page c.config.home_link
host_health_cls service_health_cls host_perc opt_class ok_pct w_pct u_pct c_pct p_pct
s.cpu_perc perc plugin_name plugin_editor_path shinken_features_path l.0 l.1
prev_host_empty color add_request_backend
prev_host_empty color add_request_backend soff son hon hoff on off
/]);
my $whitelist_regex = [
qr/^\w+\.(id|nr)$/,
Expand Down
8 changes: 4 additions & 4 deletions templates/_extinfo_host_service_details.tt
Original file line number Diff line number Diff line change
Expand Up @@ -80,27 +80,27 @@ END
[% IF yes %]
[% IF type == "service" %]
[% IF !command_disabled(c, soff) %]
<a class="js-modal-command-link" href='cmd.cgi?cmd_typ=[% soff %]&amp;host=[% obj.host_name | uri %]&amp;service=[% obj.description | uri %]&amp;backend=[% peer_key %]'><div class='badge ENABLED'>ENABLED</div></a>
<a class="js-modal-command-link" href="cmd.cgi?cmd_typ=[% soff %]&amp;host=[% obj.host_name | uri %]&amp;service=[% obj.description | uri %]&amp;backend=[% peer_key %]"><div class='badge ENABLED'>ENABLED</div></a>
[% ELSE %]
<div class='badge ENABLED'>ENABLED</div>
[% END %]
[% ELSE %]
[% IF !command_disabled(c, hoff) %]
<a class="js-modal-command-link" href='cmd.cgi?cmd_typ=[% hoff %]&amp;host=[% obj.name | uri %]&backend=[% peer_key %]'><div class='badge ENABLED'>ENABLED</div></a>
<a class="js-modal-command-link" href="cmd.cgi?cmd_typ=[% hoff %]&amp;host=[% obj.name | uri %]&backend=[% peer_key %]"><div class='badge ENABLED'>ENABLED</div></a>
[% ELSE %]
<div class='badge ENABLED'>ENABLED</div>
[% END %]
[% END %]
[% ELSE %]
[% IF type == "service" %]
[% IF !command_disabled(c, son) %]
<a class="js-modal-command-link" href='cmd.cgi?cmd_typ=[% son %]&amp;host=[% obj.host_name | uri %]&amp;service=[% obj.description | uri %]&amp;backend=[% peer_key %]'><div class='badge DISABLED'>DISABLED</div></a>
<a class="js-modal-command-link" href="cmd.cgi?cmd_typ=[% son %]&amp;host=[% obj.host_name | uri %]&amp;service=[% obj.description | uri %]&amp;backend=[% peer_key %]"><div class='badge DISABLED'>DISABLED</div></a>
[% ELSE %]
<div class='badge DISABLED'>DISABLED</div>
[% END %]
[% ELSE %]
[% IF !command_disabled(c, hon) %]
<a class="js-modal-command-link" href='cmd.cgi?cmd_typ=[% hon %]&amp;host=[% obj.name | uri %]&backend=[% peer_key %]'><div class='badge DISABLED'>DISABLED</div></a>
<a class="js-modal-command-link" href="cmd.cgi?cmd_typ=[% hon %]&amp;host=[% obj.name | uri %]&backend=[% peer_key %]"><div class='badge DISABLED'>DISABLED</div></a>
[% ELSE %]
<div class='badge DISABLED'>DISABLED</div>
[% END %]
Expand Down
4 changes: 2 additions & 2 deletions templates/extinfo_type_0.tt
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
[% IF backend_detail.$pd.running %]
[% IF yes %]
[% IF !command_disabled(c, off) %]
<a class="js-modal-command-link" href='cmd.cgi?cmd_typ=[% off %]&backend=[% pd %]'><div class='YES badge'>YES</div></a>
<a class="js-modal-command-link" href="cmd.cgi?cmd_typ=[% off %]&backend=[% pd %]"><div class='YES badge'>YES</div></a>
[% ELSE %]
<div class='YES badge'>YES</div>
[% END %]
[% ELSE %]
[% IF !command_disabled(c, on) %]
<a class="js-modal-command-link" href='cmd.cgi?cmd_typ=[% on%]&backend=[% pd %]'><div class='NO badge'>NO</div></a>
<a class="js-modal-command-link" href="cmd.cgi?cmd_typ=[% on%]&backend=[% pd %]"><div class='NO badge'>NO</div></a>
[% ELSE %]
<div class='NO badge'>NO</div>
[% END %]
Expand Down

0 comments on commit 579890c

Please sign in to comment.