diff --git a/classes/ViewFactory.php b/classes/ViewFactory.php index 6b129ce..5928efd 100644 --- a/classes/ViewFactory.php +++ b/classes/ViewFactory.php @@ -34,7 +34,7 @@ class ViewFactory $request = $request->withUri($request->getUri()->withScheme('https')->withPort(443)); } - $smartyPlugins = new SmartyPlugins($container['router'], $request->getUri()); + $smartyPlugins = new SmartyPlugins($container['router'], $request->getUri()->withUserInfo(null)); $view->registerPlugin('function', 'path_for', [$smartyPlugins, 'pathFor']); $view->registerPlugin('function', 'base_url', [$smartyPlugins, 'baseUrl']); diff --git a/controllers/FrontController.php b/controllers/FrontController.php index 3318048..1c383f8 100644 --- a/controllers/FrontController.php +++ b/controllers/FrontController.php @@ -105,7 +105,7 @@ class FrontController */ public function index(Request $request, Response $response) { - $uri = $request->getUri(); + $uri = $request->getUri()->withUserInfo(null); $this->view->render( $response, 'index.tpl',