own3mall 8 лет назад
Родитель
Сommit
21f0d3764a
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      modules/cron/shared_cron_functions.php

+ 5 - 0
modules/cron/shared_cron_functions.php

@@ -166,6 +166,11 @@ function updateCronJobPasswords($db, $remote, $changedHomeId){
 						if($homeId !== false && $action !== false){
 							if($homeId == $changedHomeId){
 								$curPass = getURLParam($cPassStr, $command);
+								if(stripos($curPass, '" --no-check-certificate') !== false){
+									$curPass = substr($curPass, 0, stripos($curPass, '" --no-check-certificate'));
+								}else if(strrpos($curPass, '"') !== false){
+									$curPass = substr($curPass, 0, strrpos($curPass, '"'));
+								}								
 								if($curPass != $control_password){
 									$command = str_replace($cPassStr . $curPass, $cPassStr . $control_password, $command);
 									$minute = $job['minute'];