We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 19724a51 authored by Zach Copley's avatar Zach Copley

trac533 Removed redundant calls to htmlspecialcharacters().

XMLWriter::writeAttribute() already takes care of the escaping for
us, although that doesn't seem to be well documented.
parent c16ddd67
......@@ -172,7 +172,7 @@ class HTMLOutputter extends XMLOutputter
'type' => 'text',
'id' => $id);
if ($value) {
$attrs['value'] = htmlspecialchars($value);
$attrs['value'] = $value;
}
$this->element('input', $attrs);
if ($instructions) {
......@@ -206,7 +206,7 @@ class HTMLOutputter extends XMLOutputter
'class' => 'checkbox',
'id' => $id);
if ($value) {
$attrs['value'] = htmlspecialchars($value);
$attrs['value'] = $value;
}
if ($checked) {
$attrs['checked'] = 'checked';
......
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