In LoginController at line 21 written:
if (strpos(Yii::app()->user->returnUrl,'/index.php')!==false).
I think, that this should be right this:
if (preg_match('/index.php$/', Yii::app()->user->returnUrl)).
This is because when I try to get page under authorization, I'll redirected to
login page, and returnUrl, accessed by Yii::app()->user->returnUrl, have url
like this: "/index.php?r=site/contact". This url satisfy the condition. But
when I directly go to login page, returnUrl contains url like this:
"/index.php", that satisfy the condition too. So, I always redirect to
Yii::app()->controller->module->returnUrl ("index.php?r=user/profile"). This is
not so good :)
Original issue reported on code.google.com by iksm...@gmail.com on 18 Feb 2011 at 9:04
Original issue reported on code.google.com by
iksm...@gmail.com
on 18 Feb 2011 at 9:04