removed obsolete magic_quotes_gpc handling
This commit is contained in:
parent
c8d36eadd7
commit
aa435cecfb
|
@ -107,14 +107,6 @@ else if (count($_POST)==0) {
|
|||
$_SESSION['account']->new_account();
|
||||
}
|
||||
|
||||
// remove double slashes if magic quotes are on
|
||||
if (get_magic_quotes_gpc() == 1) {
|
||||
$postKeys = array_keys($_POST);
|
||||
for ($i = 0; $i < sizeof($postKeys); $i++) {
|
||||
if (is_string($_POST[$postKeys[$i]])) $_POST[$postKeys[$i]] = stripslashes($_POST[$postKeys[$i]]);
|
||||
}
|
||||
}
|
||||
|
||||
// show account page
|
||||
$_SESSION['account']->continue_main();
|
||||
|
||||
|
|
|
@ -625,13 +625,6 @@ function checkInput() {
|
|||
$conf = &$_SESSION['conf_config'];
|
||||
$types = $conf->get_ActiveTypes();
|
||||
|
||||
// remove double slashes if magic quotes are on
|
||||
if (get_magic_quotes_gpc() == 1) {
|
||||
$postKeys = array_keys($_POST);
|
||||
for ($i = 0; $i < sizeof($postKeys); $i++) {
|
||||
if (is_string($_POST[$postKeys[$i]])) $_POST[$postKeys[$i]] = stripslashes($_POST[$postKeys[$i]]);
|
||||
}
|
||||
}
|
||||
// check new preferences
|
||||
$errors = array();
|
||||
if (!$conf->set_ServerURL($_POST['serverurl'])) {
|
||||
|
|
|
@ -90,13 +90,6 @@ $errors = array();
|
|||
$messages = array();
|
||||
// check if submit button was pressed
|
||||
if (isset($_POST['submitFormData'])) {
|
||||
// remove double slashes if magic quotes are on
|
||||
if (get_magic_quotes_gpc() == 1) {
|
||||
$postKeys = array_keys($_POST);
|
||||
for ($i = 0; $i < sizeof($postKeys); $i++) {
|
||||
if (is_string($_POST[$postKeys[$i]])) $_POST[$postKeys[$i]] = stripslashes($_POST[$postKeys[$i]]);
|
||||
}
|
||||
}
|
||||
// set master password
|
||||
if (isset($_POST['masterpassword']) && ($_POST['masterpassword'] != "")) {
|
||||
if ($_POST['masterpassword'] && $_POST['masterpassword2'] && ($_POST['masterpassword'] == $_POST['masterpassword2'])) {
|
||||
|
|
|
@ -582,9 +582,6 @@ if(!empty($_POST['checklogin'])) {
|
|||
display_LoginPage($_SESSION['config'], $_SESSION["cfgMain"], $licenseValidator, $error_message); // Empty password submitted. Return to login page.
|
||||
exit();
|
||||
}
|
||||
if (get_magic_quotes_gpc() == 1) {
|
||||
$_POST['passwd'] = stripslashes($_POST['passwd']);
|
||||
}
|
||||
$username = $_POST['username'];
|
||||
$password = $_POST['passwd'];
|
||||
}
|
||||
|
|
|
@ -125,13 +125,6 @@ if (isset($_POST['save'])) {
|
|||
}
|
||||
}
|
||||
|
||||
// remove double slashes if magic quotes are on
|
||||
if (get_magic_quotes_gpc() == 1) {
|
||||
foreach ($opt_keys as $element) {
|
||||
if (isset($options[$element][0]) && is_string($options[$element][0])) $options[$element][0] = stripslashes($options[$element][0]);
|
||||
}
|
||||
}
|
||||
|
||||
// check options
|
||||
$errors = checkProfileOptions($_POST['accounttype'], $options);
|
||||
if (sizeof($errors) == 0) { // input data is valid, save profile
|
||||
|
@ -169,13 +162,8 @@ if (isset($_POST['save'])) {
|
|||
$postKeys = array_keys($_POST);
|
||||
for ($i = 0; $i < sizeof($postKeys); $i++) {
|
||||
if (!is_array($_POST[$postKeys[$i]])) {
|
||||
if (get_magic_quotes_gpc() == 1) {
|
||||
$old_options[$postKeys[$i]] = array(stripslashes($_POST[$postKeys[$i]]));
|
||||
}
|
||||
else {
|
||||
$old_options[$postKeys[$i]] = array($_POST[$postKeys[$i]]);
|
||||
}
|
||||
}
|
||||
else {
|
||||
$old_options[$postKeys[$i]] = $_POST[$postKeys[$i]];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue