From 129dde35a2a9d63fa4bb1cee61c110bfe2c424b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 10 Nov 2012 00:27:39 +0100 Subject: [PATCH] exit when not executed via CLI --- wcfsetup/install/files/cli.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcfsetup/install/files/cli.php b/wcfsetup/install/files/cli.php index 9cb2bab1f4..36dd074654 100644 --- a/wcfsetup/install/files/cli.php +++ b/wcfsetup/install/files/cli.php @@ -7,6 +7,8 @@ * @package com.woltlab.wcf * @category Community Framework */ +if (PHP_SAPI !== 'cli') exit; + // define the wcf-root-dir define('WCF_DIR', dirname(__FILE__).'/'); -- 2.20.1