mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Prevent an warning by using preg_quote
This accounts for special characters like a * in the value.
This commit is contained in:
@@ -1317,7 +1317,7 @@ if (!class_exists('xml_cdr')) {
|
||||
}
|
||||
|
||||
//find all other matching actions
|
||||
if ($value['extension'] == $detail_action or preg_match('/^'.$value['extension'].'$/', $detail_action)) {
|
||||
if (!empty($value['extension']) && $value['extension'] == $detail_action or preg_match('/^'.preg_quote($value['extension']).'$/', $detail_action)) {
|
||||
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/".$application."/app_languages.php")) {
|
||||
$value['application'] = $application;
|
||||
return $value;
|
||||
|
||||
Reference in New Issue
Block a user