We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fac75a commit 22ffa33Copy full SHA for 22ffa33
src/Component/Http/Server/Kernel.php
@@ -114,11 +114,9 @@ public function setLogger(LoggerInterface $logger): void
114
*/
115
public function execute(bool $terminate = true, bool $clearUnexpectedBuffer = true): void
116
{
117
- $this->logger->debug(sprintf(
118
- 'Received request %s %s',
119
- $this->request->getMethod(),
120
- preg_replace('/(?<=:\/\/).*?(?=@)/', '***:***', $this->request->getUri())
121
- ));
+ $this->logger->debug(sprintf('Received request %s %s', $this->request->getMethod(), preg_replace(
+ '/(?<=:\/\/)([^:]+):.*?(?=@)/', '$1:***', $this->request->getUri()->__toString()
+ )));
122
123
$this->eventDispatcher?->dispatch(new BeforeHandleRequestEvent());
124
0 commit comments