mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #1327 from ss23/patch-2
BUG Database config values aren't escaped
This commit is contained in:
commit
7ce010928d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user