Skip to content

Commit

Permalink
read a widget optional parameter with " fix
Browse files Browse the repository at this point in the history
  • Loading branch information
noodom authored May 2, 2024
1 parent 8398043 commit 9af00e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion desktop/modal/cmd.configure.php
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@
$tr .= '<input class="form-control key" value="' . $key . '" />';
$tr .= '</td>';
$tr .= '<td>';
$tr .= '<input class="form-control value" value="' . $value . '" />';
$tr .= '<input class="form-control value" value="' . htmlspecialchars($value, ENT_QUOTES) . '" />';
$tr .= '</td>';
$tr .= '<td>';
$tr .= '<a class="btn btn-danger btn-xs removeWidgetParameter pull-right"><i class="fas fa-times"></i> Supprimer</a>';
Expand Down
2 changes: 1 addition & 1 deletion desktop/modal/eqLogic.configure.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
$echo .= '<input class="form-control input-sm key" value="' . $key . '">';
$echo .= '</td>';
$echo .= '<td>';
$echo .= '<input class="form-control input-sm value" value="' . $value . '">';
$echo .= '<input class="form-control input-sm value" value="' . htmlspecialchars($value, ENT_QUOTES) . '">';
$echo .= '</td>';
$echo .= '<td class="text-right">';
$echo .= '<a class="btn btn-danger btn-xs removeWidgetParameter"><i class="far fa-trash-alt"></i> {{Supprimer}}</a>';
Expand Down
4 changes: 2 additions & 2 deletions desktop/modal/eqLogic.dashboard.edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
$echo .= '<input class="form-control input-sm key" value="' . $key . '">';
$echo .= '</td>';
$echo .= '<td>';
$echo .= '<input class="form-control input-sm value" value="' . $value . '">';
$echo .= '<input class="form-control input-sm value" value="' . htmlspecialchars($value, ENT_QUOTES) . '">';
$echo .= '</td>';
$echo .= '<td class="text-right">';
$echo .= '<a class="btn btn-danger btn-xs removeTileParameter"><i class="far fa-trash-alt"></i></a>';
Expand Down Expand Up @@ -428,7 +428,7 @@
$display .= '<tr class="cmdoptparam text-center">';
$display .= '<td colspan="3">';
$display .= '<input class="key" value="' . $key . '" style="width:45%;">';
$display .= ' <input class="value" value="' . $value . '" style="width:45%;">';
$display .= ' <input class="value" value="' . htmlspecialchars($value, ENT_QUOTES) . '" style="width:45%;">';
$display .= '<a class="btn btn-danger btn-xs pull-right removeWidgetParameter"><i class="fas fa-trash-alt"></i></a>';
$display .= '</td>';
$display .= '</tr>';
Expand Down

0 comments on commit 9af00e9

Please sign in to comment.