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

Commit 98362d9

Browse files
committed
Merge pull request #999 from Ellega/meta.syncable.fix.charset
Fix win OS charset bug in meta.syncable
2 parents c88a54c + 9ba7202 commit 98362d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/plugins/meta.syncable/class.ChangesTracker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,8 @@ public function updateNodesIndex($oldNode = null, $newNode = null, $copy = false
560560
} else {
561561
$this->logDebug('UPDATE FOLDER PATH', $newNode->getUrl());
562562
dibi::query("UPDATE [ajxp_index] SET [node_path]=REPLACE( REPLACE(CONCAT('$$$',[node_path]), CONCAT('$$$', %s), CONCAT('$$$', %s)) , '$$$', '') ",
563-
$oldNode->getPath(),
564-
$newNode->getPath()
563+
SystemTextEncoding::toUTF8($oldNode->getPath()),
564+
SystemTextEncoding::toUTF8($newNode->getPath())
565565
, "WHERE [node_path] LIKE %like~ AND [repository_identifier] = %s", SystemTextEncoding::toUTF8($oldNode->getPath()), $repoId);
566566
try{
567567
$rowCount = dibi::getAffectedRows();

0 commit comments

Comments
 (0)