BUG Database config values aren't escaped

Causes minor UI issues if you try use database configuration values that happen to have " or other values in them.
This commit is contained in:
Stephen Shkardoon 2013-03-24 01:05:33 +13:00
parent bfab74ac6e
commit 9b9f367e93

View File

@ -157,7 +157,7 @@
$attrs['class'] .= ' configured-by-env';
}
$attrHTML = '';
foreach($attrs as $attrName => $attrValue) $attrHTML .= "$attrName=\"$attrValue\" ";
foreach($attrs as $attrName => $attrValue) $attrHTML .= "$attrName=\"" . htmlspecialchars($attrValue) . '"';
if(isset($fieldSpec['attributes'])) $attrs = array_merge($attrs, $fieldSpec['attributes']);
// html