You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated F3 from 3.5 to 3.6 and found error when call $f3->reroute('/'). I found that the error come due to F3 change the way to reroute by adding PORT variable when reroute to root (/)
if ($url[0]=='/') {
$port=$this->hive['PORT'];
$port=in_array($port,[80,443])?'':':'.$port;
$url=$this->hive['SCHEME'].'://'.
$this->hive['HOST'].$port.$this->hive['BASE'].$url;
}
PORT variable is sourced from $_SERVER['SERVER_PORT'] which some proxy server didn't use it but $_SERVER['HTTP_X_FORWARDED_PORT']
The text was updated successfully, but these errors were encountered:
bcosca
added a commit
to f3-factory/fatfree-core
that referenced
this issue
Feb 21, 2017
I have updated F3 from 3.5 to 3.6 and found error when call $f3->reroute('/'). I found that the error come due to F3 change the way to reroute by adding PORT variable when reroute to root (/)
PORT variable is sourced from $_SERVER['SERVER_PORT'] which some proxy server didn't use it but $_SERVER['HTTP_X_FORWARDED_PORT']
The text was updated successfully, but these errors were encountered: