DoliCloud/SellYourSaas

Wrong path in batch_detect_evil_instances.php ?

hregis opened this issue · 0 comments

Hello,

in "batch_detect_evil_instances.php" script, the path of spam dir is

$pathtospamdir = '/tmp/spam';

and after, script go to dir

print "----- Go into dir /home/jail/home\n";
chdir('/home/jail/home/');

and create the "$pathtospamdir"

dol_mkdir($pathtospamdir);

but as the path begins with a slash (/tmp/spam), it creates the "spam" directory in the server's "tmp" directory.

What is the desired purpose?