Don't include credentials in URLs (fixes #118)
This commit is contained in:
parent
930bcdad8d
commit
480271a45e
2 changed files with 2 additions and 2 deletions
|
@ -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']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue