mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-21 20:34:57 +09:00
Redirects module bugfix
This commit is contained in:
1 parent
6c374e38df
commit
66647f3f62
2 files changed
+2
-1
No files matched your search
@@ -61,6 +61,7 @@ class Box_App {
|
||||
$mod = filter_var($mod, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH);
|
||||
|
||||
$this->mod = $mod;
|
||||
$this->uri = $requestUri;
|
||||
}
|
||||
|
||||
protected function init(){}
|
||||
|
||||
@@ -56,7 +56,7 @@ class Client implements \Box\InjectionAwareInterface
|
||||
public function do_redirect(\Box_App $app)
|
||||
{
|
||||
$service = $this->di['mod_service']('redirect');
|
||||
$target = $service->getRedirectByPath($app->url);
|
||||
$target = $service->getRedirectByPath($app->uri);
|
||||
Header( "HTTP/1.1 301 Moved Permanently" );
|
||||
Header( "Location: ".$target );
|
||||
exit;
|
||||
|
||||
Reference in new issue
Block a user