原代码:
public function getReturnUrl()
{
return $this->getState('__returnUrl',Yii::app()->getRequest()->getScriptUrl());
}
建议更改为:
public function getReturnUrl($defaultUrl=null)
{
return $this->getState('__returnUrl',$defaultUrl?CHtml::normalizeUrl($defaultUrl):Yii::app()->getRequest()->getScriptUrl());
}
Ticket: