Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 6dcf9fc

Browse files
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents 0fcc5f0 + 982a15f commit 6dcf9fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/core/classes/class.AJXP_Controller.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ public static function runCommandInBackground($cmd, $logFile)
373373
} else {
374374
$basePath = str_replace("/", DIRECTORY_SEPARATOR, AJXP_INSTALL_PATH);
375375
$tmpBat = implode(DIRECTORY_SEPARATOR, array( $basePath, "data","tmp", md5(time()).".bat"));
376+
$cmd = "@chcp 1252 > nul \r\n".$cmd;
376377
$cmd .= "\n DEL ".chr(34).$tmpBat.chr(34);
377378
AJXP_Logger::debug("Writing file $cmd to $tmpBat");
378379
file_put_contents($tmpBat, $cmd);

0 commit comments

Comments
 (0)