mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-24058 magic quotes are being delat with in our lib/setup.php, no need to use them again in our heavily hacked quickforms
This commit is contained in:
parent
e6fec85d61
commit
714dac9f7b
@ -263,11 +263,11 @@ class HTML_QuickForm extends HTML_Common {
|
||||
$this->updateAttributes($attributes);
|
||||
if (!$trackSubmit || isset($_REQUEST['_qf__' . $formName])) {
|
||||
if (1 == get_magic_quotes_gpc()) {
|
||||
$this->_submitValues = $this->_recursiveFilter('stripslashes', 'get' == $method? $_GET: $_POST);
|
||||
$this->_submitValues = ('get' == $method? $_GET: $_POST); // we already eliminated magic quotes in moodle setup.php
|
||||
foreach ($_FILES as $keyFirst => $valFirst) {
|
||||
foreach ($valFirst as $keySecond => $valSecond) {
|
||||
if ('name' == $keySecond) {
|
||||
$this->_submitFiles[$keyFirst][$keySecond] = $this->_recursiveFilter('stripslashes', $valSecond);
|
||||
$this->_submitFiles[$keyFirst][$keySecond] = $valSecond; // we already eliminated magic quotes in moodle setup.php
|
||||
} else {
|
||||
$this->_submitFiles[$keyFirst][$keySecond] = $valSecond;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user