Fix: Better filter for mailing modules files

This commit is contained in:
Laurent Destailleur 2008-05-13 00:57:38 +00:00
parent 4b40cc7509
commit cdf9d6df00

View File

@ -194,7 +194,8 @@ if ($mil->fetch($_REQUEST["id"]) >= 0)
{
if (substr($file, 0, 1) <> '.' && substr($file, 0, 3) <> 'CVS')
{
if (eregi("(.*)\.(.*)\.(.*)",$file,$reg)) {
if (eregi("(.*)\.modules\.php$",$file,$reg))
{
$modulename=$reg[1];
if ($modulename == 'example') continue;