updated readme.md
improved rtrim() "/" on BASE Route
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
## *PATHFINDER*
|
||||
Mapping tool for [*EVE ONLINE*](https://www.eveonline.com)
|
||||
|
||||
- Project [https://www.pathfinder.exodus4d.de](https://www.pathfinder.exodus4d.de)
|
||||
- Project [https://www.pathfinder-w.space](https://www.pathfinder-w.space)
|
||||
- Official Forum post [https://forums.eveonline.com](https://forums.eveonline.com/default.aspx?g=posts&m=6021776#post6021776)
|
||||
- Screenshots [imgur.com](http://imgur.com/a/k2aVa)
|
||||
- Video [youtube.com](https://www.youtube.com/channel/UC7HU7XEoMbqRwqxDTbMjSPg)
|
||||
|
||||
@@ -48,7 +48,7 @@ class User extends Controller\Controller{
|
||||
$user->updateApiData();
|
||||
|
||||
// route user to map app
|
||||
$return->reroute = self::getEnvironmentData('URL') . $f3->alias('map');
|
||||
$return->reroute = rtrim(self::getEnvironmentData('URL'), '/') . $f3->alias('map');
|
||||
}
|
||||
|
||||
echo json_encode($return);
|
||||
@@ -460,7 +460,7 @@ class User extends Controller\Controller{
|
||||
$this->logUserIn( $user->name, $settingsData['password'] );
|
||||
|
||||
// return reroute path
|
||||
$return->reroute = self::getEnvironmentData('URL') . $this->f3->alias('map');
|
||||
$return->reroute = rtrim(self::getEnvironmentData('URL'), '/') . $this->f3->alias('map');
|
||||
}
|
||||
|
||||
// get fresh updated user object
|
||||
|
||||
@@ -145,7 +145,7 @@ class Controller {
|
||||
isset($params['reroute']) &&
|
||||
(bool)$params['reroute']
|
||||
){
|
||||
$return->reroute = self::getEnvironmentData('URL') . $f3->alias('landing');
|
||||
$return->reroute = rtrim(self::getEnvironmentData('URL'), '/') . $f3->alias('landing');
|
||||
}else{
|
||||
// no reroute -> errors can be shown
|
||||
$return->error[] = $this->getUserLoggedOffError();
|
||||
|
||||
Reference in New Issue
Block a user