Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Die magic_quotes, die! (#2099)
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher authored and Walid Nouh committed Mar 13, 2017
1 parent 62c368d commit 3776316
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
10 changes: 0 additions & 10 deletions front/send.php
Expand Up @@ -85,23 +85,13 @@
echo "Error opening file $filename";
} else {
// Pour que les \x00 ne devienne pas \0
$mc=Toolbox::get_magic_quotes_runtime();
if ($mc) {
@ini_set('magic_quotes_runtime', 0);
}
$fsize=filesize($file);

if ($fsize) {
echo fread($f, filesize($file));
} else {

}

if ($mc) {
@ini_set('magic_quotes_runtime', $mc);
}
}
}
}

?>
3 changes: 0 additions & 3 deletions install/update.php
Expand Up @@ -612,9 +612,6 @@ function pluginFusioninventoryUpdate($current_version, $migrationname='Migration
$sql_query = fread($DBf_handle, filesize($DB_file));
fclose($DBf_handle);
foreach (explode(";\n", "$sql_query") as $sql_line) {
if (Toolbox::get_magic_quotes_runtime()) {
$sql_line=Toolbox::stripslashes_deep($sql_line);
}
if (!empty($sql_line)) {
$DB->query($sql_line)/* or die($DB->error())*/;
}
Expand Down

0 comments on commit 3776316

Please sign in to comment.