FIX error on setup of password if pass generators have a .old file.

This commit is contained in:
Laurent Destailleur 2019-03-04 20:00:36 +01:00
parent c3b08a604f
commit 15138aa543

View File

@ -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];