Fix: Sanitize password to avoid to use the wrapper to inject malicious
paylod into asterisk
This commit is contained in:
parent
918c5aab43
commit
d325f2c25d
1 changed files with 3 additions and 0 deletions
|
|
@ -118,6 +118,9 @@ $password = GETPOST('password', 'none');
|
|||
$caller = GETPOST('caller', 'alphanohtml');
|
||||
$called = GETPOST('called', 'alphanohtml');
|
||||
|
||||
// Sanitize password to avoid to use the wrapper to inject malicious paylod into asterisk
|
||||
$password = preg_replace('/[\n\r]/', '', $password);
|
||||
|
||||
// IP address of Asterisk server
|
||||
$strHost = getDolGlobalString('ASTERISK_HOST');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue