2
0
forked from Wavyzz/dolibarr

preg_quote

This commit is contained in:
Laurent Destailleur
2024-01-10 08:59:45 +01:00
parent 203245bf95
commit df70a30a8e

View File

@@ -448,7 +448,7 @@ foreach ($listofnotifiedevents as $notifiedevent) {
$inputfieldalreadyshown = 0;
// Notification with threshold
foreach ($conf->global as $key => $val) {
if ($val == '' || !preg_match('/^NOTIFICATION_FIXEDEMAIL_'.$notifiedevent['code'].'_THRESHOLD_HIGHER_(.*)/', $key, $reg)) {
if ($val == '' || !preg_match('/^NOTIFICATION_FIXEDEMAIL_'.preg_quote($notifiedevent['code'], '/').'_THRESHOLD_HIGHER_(.*)/', $key, $reg)) {
continue;
}