Authored by 郝肖肖

登录成功后 refer €https

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