Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Jamie Slome authored and GitHub committed 2021-04-19 11:51:36 +00:00
commit 241dea2c8e
2 files changed
+4 -3

No files matched your search

+1
View File
@@ -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)
</div>
+3 -3
View File
@@ -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());
}
}
}