You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($pathinfo['dirname'].DIRECTORY_SEPARATOR.$pathinfo['basename'] != $file) {
38
+
$this->modx->log (modX::LOG_LEVEL_ERROR, 'Could not prepare the filepath ' . $file . '. Please set a valid UTF8 capable locale in the MODX system setting "locale".');
Copy file name to clipboardExpand all lines: core/model/modx/processors/browser/file/rename.class.php
+6-3
Original file line number
Diff line number
Diff line change
@@ -40,19 +40,22 @@ public function process() {
40
40
}
41
41
42
42
$oldFile = $this->getProperty('path');
43
-
$oldlocale = setlocale(LC_ALL, 0);
44
-
setlocale(LC_ALL,'C.UTF-8');
45
43
$pathinfo = pathinfo($oldFile);
44
+
if ($pathinfo['dirname'].DIRECTORY_SEPARATOR.$pathinfo['basename'] != $oldFile) {
45
+
$this->modx->log (modX::LOG_LEVEL_ERROR, 'Could not prepare the filepath ' . $oldFile . '. Please set a valid UTF8 capable locale in the MODX system setting "locale".');
$this->modx->log (modX::LOG_LEVEL_ERROR, 'Could not prepare the filepath ' . $newFile . '. Please set a valid UTF8 capable locale in the MODX system setting "locale".');
0 commit comments