From 68f55f95968f9108c12e24ad3149800b8790cc07 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Mon, 27 May 2019 08:33:36 +0200 Subject: [PATCH] dont allow bootstrap.php file from tests/ to be called via browser Signed-off-by: Michael Kaufmann --- tests/bootstrap.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index a4e59d86f8..87344530f7 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -11,6 +11,11 @@ define('TRAVIS_CI', 1); } +if (@php_sapi_name() !== 'cli') { + // not to be called via browser + die; +} + $userdata_content = "