summaryrefslogtreecommitdiff
path: root/include/controls.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-16 15:27:22 +0300
committerAndrew Dolgov <[email protected]>2021-02-16 15:27:22 +0300
commit4f4e57bb26620ba6f4adcc413ff60b86fdeb158f (patch)
tree2c7db3fd54811cab933749e7e69aab646e3a7d01 /include/controls.php
parent1f5d81b77cd9a5d5f965af0435688c1f1f229e96 (diff)
hidden_tag: temporarily prevent htmlspecialchars() to stop embedded JSON from breaking
Diffstat (limited to 'include/controls.php')
-rwxr-xr-xinclude/controls.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/controls.php b/include/controls.php
index b351a9449..6d3cfc417 100755
--- a/include/controls.php
+++ b/include/controls.php
@@ -61,7 +61,7 @@
function hidden_tag(string $name, string $value) {
return "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\"
- name=\"".htmlspecialchars($name)."\" value=\"".htmlspecialchars($value)."\">";
+ name=\"".htmlspecialchars($name)."\" value=\"$value\">";
}
function checkbox_tag(string $name, bool $checked = false, string $value = "", string $attributes = "", string $id = "") {