diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-23 12:02:38 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-23 12:02:38 +0000 |
commit | 8baa1261ed69021d152541a64cdea8b46722d031 (patch) | |
tree | 5b6ba2d637d56cb61fa4bc21ccfeb45e3cd85e54 | |
parent | b10155385b8d34081ad17c710b1bfd8c1d020b14 (diff) | |
download | brdo-8baa1261ed69021d152541a64cdea8b46722d031.tar.gz brdo-8baa1261ed69021d152541a64cdea8b46722d031.tar.bz2 |
#194652 by Heine: specify explicit accept-charset for forms to avoid browser guessing
-rw-r--r-- | includes/form.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc index 994045dfa..a374963fb 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -1921,7 +1921,7 @@ function theme_textfield($element) { function theme_form($element) { // Anonymous div to satisfy XHTML compliance. $action = $element['#action'] ? 'action="'. check_url($element['#action']) .'" ' : ''; - return '<form '. $action .' method="'. $element['#method'] .'" id="'. $element['#id'] .'"'. drupal_attributes($element['#attributes']) .">\n<div>". $element['#children'] ."\n</div></form>\n"; + return '<form '. $action .' accept-charset="UTF-8" method="'. $element['#method'] .'" id="'. $element['#id'] .'"'. drupal_attributes($element['#attributes']) .">\n<div>". $element['#children'] ."\n</div></form>\n"; } /** |