Fixes for escape issue

This commit is contained in:
mlantz committed 2017-04-20 00:02:24 -04:00
1 parent 4c4188935e
commit 856e1e6d6b
4 files changed
+6 -63

No files matched your search

+4 -4
View File
@@ -485,7 +485,7 @@ class FormBuilder
// the element. Then we'll create the final textarea elements HTML for us.
$options = $this->html->attributes($options);
return $this->toHtmlString('<textarea' . $options . '>' . $this->html->escapeAll($value). '</textarea>');
return $this->toHtmlString('<textarea' . $options . '>' . e($value). '</textarea>');
}
/**
@@ -662,7 +662,7 @@ class FormBuilder
$html[] = $this->option($display, $value, $selected);
}
return $this->toHtmlString('<optgroup label="' . $this->html->escapeAll($label) . '">' . implode('', $html) . '</optgroup>');
return $this->toHtmlString('<optgroup label="' . e($label) . '">' . implode('', $html) . '</optgroup>');
}
/**
@@ -680,7 +680,7 @@ class FormBuilder
$options = ['value' => $value, 'selected' => $selected];
return $this->toHtmlString('<option' . $this->html->attributes($options) . '>' . $this->html->escapeAll($display) . '</option>');
return $this->toHtmlString('<option' . $this->html->attributes($options) . '>' . e($display) . '</option>');
}
/**
@@ -698,7 +698,7 @@ class FormBuilder
$options = compact('selected');
$options['value'] = '';
return $this->toHtmlString('<option' . $this->html->attributes($options) . '>' . $this->html->escapeAll($display) . '</option>');
return $this->toHtmlString('<option' . $this->html->attributes($options) . '>' . e($display) . '</option>');
}
/**