diff --git a/server/cron_daily.php b/server/cron_daily.php
index f311e75b84bbe353c609071e1c302bed2a0ca7ac..8b90e8edd42a10486062225196ef07fd145a17f5 100644
--- a/server/cron_daily.php
+++ b/server/cron_daily.php
@@ -388,7 +388,7 @@ $backup_dir = $server_config['backup_dir'];
 if($backup_dir != '') {
 	
 	if(!is_dir($backup_dir)) {
-		mkdir(escapeshellarg($backup_dir), 0750, true);
+		mkdir(escapeshellcmd($backup_dir), 0750, true);
 	}
 	
 	$sql = "SELECT * FROM web_domain WHERE type = 'vhost'";