Skip to content

Commit c35127d

Browse files
committed
Debug
1 parent 579bbeb commit c35127d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/master_move_instance.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -855,14 +855,13 @@
855855
if (strpos($line, '=') === false) continue;
856856
if (preg_match('/^#/', $line)) continue;
857857
if (preg_match('/^\//', $line)) continue;
858-
if (preg_match('/;/', $line)) continue;
859858
[$key, $val] = explode('=', $line, 2);
860859
if (trim($key) === '$dolibarr_main_instance_unique_id') {
861-
$value_of_dolibarr_main_instance_unique_id = str_replace("'", "", trim($val));
860+
$value_of_dolibarr_main_instance_unique_id = str_replace(array("'",";"), "", trim($val));
862861
break;
863862
}
864863
if (trim($key) === '$dolibarr_main_cookie_cryptkey') {
865-
$value_of_dolibarr_main_cookie_cryptkey = str_replace("'", "", trim($val));
864+
$value_of_dolibarr_main_cookie_cryptkey = str_replace(array("'",";"), "", trim($val));
866865
}
867866
}
868867

0 commit comments

Comments
 (0)