mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
formslib file upload: MDL-17403 try adding accept-charset="utf-8" to forms to fix occasional upload problems.
This commit is contained in:
parent
a1440be4d8
commit
1327f08eed
@ -976,7 +976,8 @@ class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless {
|
||||
$this->_pageparams = '';
|
||||
}
|
||||
//no 'name' atttribute for form in xhtml strict :
|
||||
$attributes = array('action'=>$action, 'method'=>$method, 'id'=>'mform'.$formcounter) + $target;
|
||||
$attributes = array('action'=>$action, 'method'=>$method,
|
||||
'accept-charset'=>'utf-8', 'id'=>'mform'.$formcounter) + $target;
|
||||
$formcounter++;
|
||||
$this->updateAttributes($attributes);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user