From 108eff381440ad1501b5a3cd1b3b5bfbec813b96 Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Tue, 1 May 2018 12:44:31 +0200 Subject: [PATCH] [BUGFIX] Remove invalid regex Warning Signed-off-by: Jerome Jutteau --- lib/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) { -- 2.34.1