From 330058c72f4c9858642e5f12f3d60dbe6e9db8be Mon Sep 17 00:00:00 2001 From: gwoo Date: Thu, 22 Nov 2007 17:28:09 +0000 Subject: [PATCH] updating env(), fixes #3633 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6048 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/basics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/basics.php b/cake/basics.php index 2735fdeee..509a1cee5 100644 --- a/cake/basics.php +++ b/cake/basics.php @@ -549,7 +549,7 @@ if (!function_exists('clone')) { } if ($key == 'SCRIPT_NAME') { - if (env('CGI_MODE')) { + if (env('CGI_MODE') && isset($_ENV['SCRIPT_URL']) { $key = 'SCRIPT_URL'; } }