Skip to content
Snippets Groups Projects
Commit d2bfb669 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

Issue #1411276 by swentel, anrikun, quicksketch: Fixed image.admin.inc: new...

Issue #1411276 by swentel, anrikun, quicksketch: Fixed image.admin.inc: new effect options are double escaped (check_plain()).
parent 248284df
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -71,7 +71,7 @@ function image_style_form($form, &$form_state, $style) {
foreach ($style->effects as $key => $effect) {
$form['effects'][$key]['#weight'] = isset($form_state['input']['effects']) ? $form_state['input']['effects'][$key]['weight'] : NULL;
$form['effects'][$key]['label'] = array(
'#markup' => $effect['label'],
'#markup' => check_plain($effect['label']),
);
$form['effects'][$key]['summary'] = array(
'#markup' => isset($effect['summary theme']) ? theme($effect['summary theme'], array('data' => $effect['data'])) : '',
......@@ -115,7 +115,7 @@ function image_style_form($form, &$form_state, $style) {
// Build the new image effect addition form and add it to the effect list.
$new_effect_options = array();
foreach (image_effect_definitions() as $effect => $definition) {
$new_effect_options[$effect] = check_plain($definition['label']);
$new_effect_options[$effect] = $definition['label'];
}
$form['effects']['new'] = array(
'#tree' => FALSE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment