diff --git a/README.md b/README.md index 27ee0e9f8..be3e55f4a 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/boxbilling/boxbilling/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/boxbilling/boxbilling/?branch=master) [![CodeFactor](https://www.codefactor.io/repository/github/boxbilling/boxbilling/badge)](https://www.codefactor.io/repository/github/boxbilling/boxbilling) +[![huntr](https://cdn.huntr.dev/huntr_security_badge_mono.svg)](https://huntr.dev) diff --git a/src/bb-modules/Support/Api/Client.php b/src/bb-modules/Support/Api/Client.php index c8778c8e1..d321ceb57 100644 --- a/src/bb-modules/Support/Api/Client.php +++ b/src/bb-modules/Support/Api/Client.php @@ -94,7 +94,7 @@ class Client extends \Api_Abstract ); $this->di['validator']->checkRequiredParamsForArray($required, $data); - $data[content] = preg_replace('/javascript:\/\/|\%0(d|a)/i', '', $data[content]); + $data['content'] = preg_replace('/javascript:\/\/|\%0(d|a)/i', '', $data['content']); $helpdesk = $this->di['db']->getExistingModelById('SupportHelpdesk', $data['support_helpdesk_id'], 'Helpdesk invalid'); @@ -120,7 +120,7 @@ class Client extends \Api_Abstract ); $this->di['validator']->checkRequiredParamsForArray($required, $data); - $data[content] = preg_replace('/javascript:\/\/|\%0(d|a)/i', '', $data[content]); + $data['content'] = preg_replace('/javascript:\/\/|\%0(d|a)/i', '', $data['content']); $client = $this->getIdentity(); @@ -162,4 +162,4 @@ class Client extends \Api_Abstract return $this->getService()->closeTicket($ticket, $this->getIdentity()); } -} \ No newline at end of file +}