mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
bfab74ac6e
commit
9b9f367e93
@ -157,7 +157,7 @@
|
|||||||
$attrs['class'] .= ' configured-by-env';
|
$attrs['class'] .= ' configured-by-env';
|
||||||
}
|
}
|
||||||
$attrHTML = '';
|
$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']);
|
if(isset($fieldSpec['attributes'])) $attrs = array_merge($attrs, $fieldSpec['attributes']);
|
||||||
|
|
||||||
// html
|
// html
|
||||||
|
Loading…
x
Reference in New Issue
Block a user