Skip to content

Commit e59acdf

Browse files
committed
add security check on all relevant scripts
1 parent d170952 commit e59acdf

11 files changed

+11
-0
lines changed

magmi/web/magmi_cancel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
require_once("security.php");
23
header('Pragma: public'); // required
34
header('Expires: -1'); // no cache
45
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');

magmi/web/magmi_chooseprofile.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
require_once("security.php");
23
require_once("../inc/magmi_config.php");
34

45
$currentprofile = $_REQUEST["profile"];

magmi/web/magmi_config_setup.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
require_once("security.php");
23
require_once("magmi_config.php");
34
require_once("magmi_statemanager.php");
45
require_once("dbhelper.class.php");

magmi/web/magmi_import_run.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
require_once("security.php");
23
ini_set('gpc_magic_quotes', 0);
34
require_once("security.php");
45
$profile = isset($_REQUEST["profile"]) ? strip_tags($_REQUEST["profile"]) : 'default';

magmi/web/magmi_profile_config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
require_once("security.php");
23
require_once("magmi_config.php");
34
$conf = Magmi_Config::getInstance();
45
$conf->load();

magmi/web/magmi_profile_panel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
require_once("security.php");
23
if (isset($_REQUEST["profile"])) {
34
$profile = strip_tags($_REQUEST["profile"]);
45
} else {

magmi/web/magmi_progress.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
require_once("security.php");
23
require_once("../inc/magmi_statemanager.php");
34
require_once("progress_parser.php");
45

magmi/web/magmi_saveconfig.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
require_once("security.php");
23
require_once("../inc/magmi_config.php");
34
$conf = Magmi_Config::getInstance();
45
if ($conf->save($_POST)) {

magmi/web/magmi_saveprofile.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
require_once("security.php");
23
$profile = $_REQUEST["profile"];
34
$dslist = $_REQUEST["PLUGINS_DATASOURCES:class"];
45
$genlist = $_REQUEST["PLUGINS_GENERAL:classes"];

magmi/web/progress_details.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
require_once("security.php");
23
session_start();
34
$key = $_REQUEST["key"];
45
$data = $_SESSION["log_$key"];

magmi/web/trace_details.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
require_once("security.php");
23
require_once("../inc/magmi_statemanager.php");
34
$tid = $_REQUEST["traceid"];
45
$tracefile = Magmi_StateManager::getTraceFile();

0 commit comments

Comments
 (0)