Commit e5f75f64 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-686 Do not expose information in state migrate script. Released under

the Affero GNU General Public License (AGPL) version 3.
parent 5271568c
...@@ -53,7 +53,7 @@ define('ZPUSH_BASE_PATH', "../src"); ...@@ -53,7 +53,7 @@ define('ZPUSH_BASE_PATH', "../src");
*/ */
try { try {
if (php_sapi_name() != "cli") if (php_sapi_name() != "cli")
die(sprintf("This script should not be called in a browser. Called from: %s", php_sapi_name())); die("This script can only be called from the CLI.");
if (!defined('ZPUSH_BASE_PATH') || !file_exists(ZPUSH_BASE_PATH . "/config.php")) if (!defined('ZPUSH_BASE_PATH') || !file_exists(ZPUSH_BASE_PATH . "/config.php"))
die("ZPUSH_BASE_PATH not set correctly or no config.php file found\n"); die("ZPUSH_BASE_PATH not set correctly or no config.php file found\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment