updating env(), fixes #3633

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6048 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-11-22 17:28:09 +00:00
parent d4a0f8300e
commit 330058c72f

View file

@ -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';
}
}