Commit 84af8fbb70580e6785385d6ab33019c6f7531f43
1 parent
c0b42cf0
KTS-4297 Added a utf_decode before doing a mb_strlen on the full path.
"The folder 'Rename' function messes up the file path" Fixed. Committed by: Megan Watson Reviewed by: Kevin Fourie
Showing
1 changed file
with
1 additions
and
1 deletions
lib/foldermanagement/folderutil.inc.php
| ... | ... | @@ -264,7 +264,7 @@ class KTFolderUtil { |
| 264 | 264 | $sQuery = "UPDATE $table SET full_path = CONCAT(?, SUBSTRING(full_path FROM ?)) WHERE full_path LIKE ? OR full_path = ?"; |
| 265 | 265 | $aParams = array( |
| 266 | 266 | "$sNewPath/", |
| 267 | - strlen($sOldPath) + 2, | |
| 267 | + mb_strlen(utf8_decode($sOldPath)) + 2, | |
| 268 | 268 | $sOldPath.'/%', |
| 269 | 269 | $sOldPath, |
| 270 | 270 | ); | ... | ... |