From a17bd84a3d190cb82eb9efd36f5a13f1dd4cc619 Mon Sep 17 00:00:00 2001 From: Kevin Duret <kduret@centreon.com> Date: Mon, 3 Apr 2017 17:33:49 +0200 Subject: [PATCH] fix kb link to servicew with spaces --- www/class/centreon-knowledge/procedures_Proxy.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/www/class/centreon-knowledge/procedures_Proxy.class.php b/www/class/centreon-knowledge/procedures_Proxy.class.php index 0b31758c7e..6a7ffb64e1 100644 --- a/www/class/centreon-knowledge/procedures_Proxy.class.php +++ b/www/class/centreon-knowledge/procedures_Proxy.class.php @@ -87,9 +87,10 @@ class procedures_Proxy { /* * Check Service */ - if (isset($procList["Service:" . trim($host_name."_".$service_description)])) { - $this->url = $this->wikiUrl . "/index.php?title=Service:".$host_name."_".$service_description; - return; + $service_description = str_replace(' ', '_', $service_description); + if (isset($procList["Service:" . trim($host_name."_".$service_description)])) { + $this->url = $this->wikiUrl . "/index.php?title=Service:".$host_name."_".$service_description; + return; } /* -- GitLab