Fir directory permissions.

This commit is contained in:
SimonFair
2023-07-02 21:54:34 +01:00
parent 2b3990922d
commit cf13a33f00

View File

@@ -1544,7 +1544,11 @@ private static $encoding = 'UTF-8';
}
$clonedir = $domain_cfg['DOMAINDIR'].$clone ;
if (!is_dir($clonedir)) mkdir($clonedir) ;
if (!is_dir($clonedir)) {
mkdir($clonedir,0777,true) ;
chown($clonedir, 'nobody');
chgrp($clonedir, 'users');
}
write("addLog\0".htmlspecialchars("Checking for image files"));
if ($file_exists && $overwrite != "yes") { write("addLog\0".htmlspecialchars(_("New image file names exist and Overwrite is not allowed"))); return( false) ; }