From d4875cb5863635afa33d14efec60b014bc354409 Mon Sep 17 00:00:00 2001 From: "qiang.xue" Date: Mon, 28 Mar 2011 11:47:01 +0000 Subject: [PATCH] --- framework/web/CClientScript.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/web/CClientScript.php b/framework/web/CClientScript.php index c2432f6f2..28d325aab 100644 --- a/framework/web/CClientScript.php +++ b/framework/web/CClientScript.php @@ -307,7 +307,7 @@ class CClientScript extends CApplicationComponent if(isset($package['baseUrl'])) { $baseUrl=$package['baseUrl']; - if($baseUrl==='' || $baseUrl[0]!=='/' && strpos($baseUrl,'://')>0) + if($baseUrl==='' || $baseUrl[0]!=='/' && strpos($baseUrl,'://')===false) $baseUrl=Yii::app()->getRequest()->getBaseUrl().'/'.$baseUrl; $baseUrl=rtrim($baseUrl,'/'); }