escape special chars on fax file name before sending to fax_retry.lua
This commit is contained in:
parent
fcd64a1eaa
commit
e6dd9256eb
|
|
@ -234,6 +234,24 @@ else {
|
||||||
$fax_name = str_replace(".tif", "", $fax_name);
|
$fax_name = str_replace(".tif", "", $fax_name);
|
||||||
$fax_name = str_replace(".tiff", "", $fax_name);
|
$fax_name = str_replace(".tiff", "", $fax_name);
|
||||||
$fax_name = str_replace(".pdf", "", $fax_name);
|
$fax_name = str_replace(".pdf", "", $fax_name);
|
||||||
|
//lua doesn't seem to like special chars with env:GetHeader
|
||||||
|
$fax_name = str_replace(";", "_", $fax_name);
|
||||||
|
$fax_name = str_replace(",", "_", $fax_name);
|
||||||
|
$fax_name = str_replace("'", "_", $fax_name);
|
||||||
|
$fax_name = str_replace("!", "_", $fax_name);
|
||||||
|
$fax_name = str_replace("@", "_", $fax_name);
|
||||||
|
$fax_name = str_replace("#", "_", $fax_name);
|
||||||
|
$fax_name = str_replace("$", "_", $fax_name);
|
||||||
|
$fax_name = str_replace("%", "_", $fax_name);
|
||||||
|
$fax_name = str_replace("^", "_", $fax_name);
|
||||||
|
$fax_name = str_replace("`", "_", $fax_name);
|
||||||
|
$fax_name = str_replace("~", "_", $fax_name);
|
||||||
|
$fax_name = str_replace("&", "_", $fax_name);
|
||||||
|
$fax_name = str_replace("(", "_", $fax_name);
|
||||||
|
$fax_name = str_replace(")", "_", $fax_name);
|
||||||
|
$fax_name = str_replace("+", "_", $fax_name);
|
||||||
|
$fax_name = str_replace("=", "_", $fax_name);
|
||||||
|
|
||||||
$provider_type = check_str($_POST['provider_type']);
|
$provider_type = check_str($_POST['provider_type']);
|
||||||
$fax_uuid = check_str($_POST["id"]);
|
$fax_uuid = check_str($_POST["id"]);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue