Commit ef1e1bb1 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Pieforms: escape value of 'collapseifone' select element option


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 81c918ec
......@@ -51,7 +51,7 @@ function pieform_element_select(Pieform $form, $element) {/*{{{*/
if (is_array($value)) {
$value = $value['value'];
}
$result = $value . '<input type="hidden" name="' . Pieform::hsc($element['name']) . '" value="' . Pieform::hsc($key) . '">';
$result = Pieform::hsc($value) . '<input type="hidden" name="' . Pieform::hsc($element['name']) . '" value="' . Pieform::hsc($key) . '">';
}
return $result;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment