Authored by 郝肖肖

登录成功后 refer €https

... ... @@ -273,10 +273,6 @@ class WebAction extends Controller_Abstract
*/
protected function go($url)
{
if (substr($url, 0, 2) === '//') {
$url = 'https:' . $url;
}
headers_sent() || header('Location: ' . $url);
exit();
... ...
... ... @@ -40,7 +40,7 @@ class LoginController extends WebAction
//登录后跳转页面
$refer = $this->get('refer', $this->server('HTTP_REFERER', ''));
//检查refer是否为绝对路径,补www.yohobuy.com
if (!strstr($refer, 'http')) {
if (substr($refer, 0, 2) !== '//' && !strstr($refer, 'http')) {
$refer = SITE_MAIN . $refer;
}
if (!empty($refer)) {
... ...