From 898240e1d466558e4ce11172316957251c79bfb3 Mon Sep 17 00:00:00 2001 From: PhantomVl Date: Wed, 29 May 2019 20:49:50 +0300 Subject: [PATCH] - Remove spaces and special characters from the name Softkey --- Sccp_manager.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sccp_manager.class.php b/Sccp_manager.class.php index f4739cf..6848920 100644 --- a/Sccp_manager.class.php +++ b/Sccp_manager.class.php @@ -803,7 +803,7 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO { break; case 'updateSoftKey': if (!empty($request['id'])) { - $id_name = $request['id']; + $id_name = preg_replace('/\s/', '', $request['id']); $this->sccp_conf_init[$id_name]['type'] = "softkeyset"; foreach ($this->extconfigs->getextConfig('keyset') as $keyl => $vall) { if (!empty($request[$keyl])) {