Require the fax extension to be numeric.

This commit is contained in:
FusionPBX 2022-06-23 15:02:07 -06:00 committed by GitHub
parent 2e2376829f
commit 8c6d8a4103
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -255,6 +255,9 @@
return;
}
//sanitize the fax extension number
$fax_extension = preg_replace('#[^0-9]#', '', $fax_extension);
//replace the spaces with a dash
$fax_name = str_replace(" ", "-", $fax_name);