From: Jerome Jutteau Date: Tue, 1 May 2018 10:44:31 +0000 (+0200) Subject: [BUGFIX] Remove invalid regex Warning X-Git-Tag: 3.4.1~4 X-Git-Url: https://git.p6c8.net/jirafeau.git/commitdiff_plain/108eff381440ad1501b5a3cd1b3b5bfbec813b96?ds=inline;hp=a7d0b9810f960d97ac03488cae9814b31e6ff3f7 [BUGFIX] Remove invalid regex Warning Signed-off-by: Jerome Jutteau --- diff --git a/lib/functions.php b/lib/functions.php index e237274..8af3801 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -597,7 +597,7 @@ function jirafeau_admin_list($name, $file_hash, $link_hash) } /* Filter. */ - if (!empty($name) && !preg_match("/$name/i", jirafeau_escape($l['file_name']))) { + if (!empty($name) && !@preg_match("/$name/i", jirafeau_escape($l['file_name']))) { continue; } if (!empty($file_hash) && $file_hash != $l['md5']) {