* the link you want to poche and which causes problem
## You want to fix a bug or to add a feature
-Please fork poche and work with the dev branch. Do not work on master branch.
\ No newline at end of file
+Please fork poche and work with **the dev branch** only. Do not work on master branch.
$scriptname = str_replace('/index.php', '/', $_SERVER["SCRIPT_NAME"]);
- if (!isset($_SERVER["SERVER_NAME"])) {
+ if (!isset($_SERVER["HTTP_HOST"])) {
return $scriptname;
}
return 'http' . ($https ? 's' : '') . '://'
- . $_SERVER["SERVER_NAME"] . $serverport . $scriptname;
+ . $_SERVER["HTTP_HOST"] . $serverport . $scriptname;
}
public static function redirect($url = '')