From 39bd8774765e05b0d92e5cf462ef88d715d2434c Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Thu, 29 Mar 2007 01:27:57 +0000 Subject: [PATCH] Use argv as indicator, could be vulnerable to register_globals though. git-svn-id: http://htmlpurifier.org/svnroot@916 48356398-32a2-884e-a903-53898d9a118a --- update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.php b/update.php index 3f4d7c8..9ded777 100644 --- a/update.php +++ b/update.php @@ -11,7 +11,7 @@ $xc = XHTMLCompiler::getInstance(); // if in command line mode, allow more options $type = 'normal'; -if ($cli = (empty($_SERVER) || php_sapi_name() === 'cli')) { +if ($cli = !empty($argv)) { set_time_limit(0); $type = isset($argv[1]) ? $argv[1] : 'normal'; // see below } else { -- 2.11.4.GIT