diff --git a/CHANGELOG.md b/CHANGELOG.md index d4c9c9cb..f1c84d58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee ### Fixed - Fix deprecated notice when using symfony/config > 4.2 +- Profiler does not display stack when client name contains dots ## 1.13.1 - 2018-11-28 diff --git a/Collector/Stack.php b/Collector/Stack.php index 815b1239..755e9487 100644 --- a/Collector/Stack.php +++ b/Collector/Stack.php @@ -340,4 +340,12 @@ public function setCurlCommand($curlCommand) { $this->curlCommand = $curlCommand; } + + /** + * @return string + */ + public function getClientSlug() + { + return preg_replace('/[^a-zA-Z0-9_-]/u', '_', $this->client); + } } diff --git a/Resources/views/stack.html.twig b/Resources/views/stack.html.twig index 92fba7ff..207f1486 100644 --- a/Resources/views/stack.html.twig +++ b/Resources/views/stack.html.twig @@ -1,4 +1,4 @@ -