save
This commit is contained in:
parent
a24e00e086
commit
50a6e7a23e
@ -43,9 +43,12 @@ class LayuiForm
|
|||||||
*/
|
*/
|
||||||
protected function options($options)
|
protected function options($options)
|
||||||
{
|
{
|
||||||
array_walk_recursive($options, function(&$item){
|
array_walk_recursive($options, function(&$item, $key){
|
||||||
if (is_string($item)) {
|
if (is_string($item)) {
|
||||||
$item = htmlspecialchars($item);
|
$item = htmlspecialchars($item);
|
||||||
|
if ($key === 'url') {
|
||||||
|
$item = str_replace('&', '&', $item);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$field = $options['field']??'';
|
$field = $options['field']??'';
|
||||||
|
Loading…
Reference in New Issue
Block a user