bugfix {html_options} did not properly escape values (Issue 98)

This commit is contained in:
rodneyrehm
2012-05-12 10:59:49 +00:00
parent 208ad6b540
commit b27fc84447
2 changed files with 5 additions and 0 deletions

View File

@@ -1,4 +1,7 @@
===== trunk =====
12.05.2012
- bugfix {html_options} did not properly escape values (Issue 98)
03.05.2012
- bugfix make HTTP protocall version variable (issue 96)

View File

@@ -150,6 +150,8 @@ function smarty_function_html_options_optoutput($key, $value, $selected, $id, $c
trigger_error("html_options: value is an object of class '". get_class($value) ."' without __toString() method", E_USER_NOTICE);
return '';
}
} else {
$value = smarty_function_escape_special_chars((string) $value);
}
$_html_result .= $_html_class . $_html_id . '>' . $value . '</option>' . "\n";
$idx++;