Skip to content

Commit f746914

Browse files
committed
fix: conditions test
1 parent 1f2641a commit f746914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/php/App.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function addHiddenFields($field)
117117
}
118118

119119
$val = is_string($field['value']) ? $field['value'] : '';
120-
echo '<input type="hidden" name="current-' . $field['name'] . '" value="' . $val . '">';
120+
echo '<input type="hidden" name="current-' . esc_attr($field['name']) . '" value="' . esc_attr(htmlspecialchars($val, ENT_QUOTES, 'UTF-8')) . '">';
121121
}
122122

123123
/**

0 commit comments

Comments
 (0)