mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-03 06:44:07 +01:00
This commit is contained in:
@@ -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,'/');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user