From 15138aa543e63d5083d9b2e4fbb250bca56bb891 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 4 Mar 2019 20:00:36 +0100 Subject: [PATCH] FIX error on setup of password if pass generators have a .old file. --- htdocs/admin/security.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/admin/security.php b/htdocs/admin/security.php index 26dcdc85b8d..291a2948987 100644 --- a/htdocs/admin/security.php +++ b/htdocs/admin/security.php @@ -212,7 +212,7 @@ if (is_resource($handle)) { while (($file = readdir($handle))!==false) { - if (preg_match('/(modGeneratePass[a-z]+)\.class\.php/i',$file,$reg)) + if (preg_match('/(modGeneratePass[a-z]+)\.class\.php$/i',$file,$reg)) { // Charging the numbering class $classname = $reg[1];