Skip to content

Commit e1cdaeb

Browse files
committed
Fixed a bug in directory creation code of the backup function.
1 parent d2212dd commit e1cdaeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/cron_daily.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ function setConfigVar( $filename, $varName, $varValue ) {
388388
if($backup_dir != '') {
389389

390390
if(!is_dir($backup_dir)) {
391-
mkdir(escapeshellarg($backup_dir), 0750, true);
391+
mkdir(escapeshellcmd($backup_dir), 0750, true);
392392
}
393393

394394
$sql = "SELECT * FROM web_domain WHERE type = 'vhost'";

0 commit comments

Comments
 (0)