changed builtin normalizer to \OC_Util::normalizeUnicode
This commit is contained in:
parent
661b5501b0
commit
736f10039d
2 changed files with 3 additions and 9 deletions
7
lib/files/cache/cache.php
vendored
7
lib/files/cache/cache.php
vendored
|
@ -566,11 +566,6 @@ class Cache {
|
|||
*/
|
||||
public function normalize($path) {
|
||||
|
||||
//normalize unicode if possible
|
||||
if (class_exists('Normalizer')) {
|
||||
$path = \Normalizer::normalize($path);
|
||||
}
|
||||
|
||||
return $path;
|
||||
return \OC_Util::normalizeUnicode($path);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -616,9 +616,8 @@ class Filesystem {
|
|||
$path = substr($path, 0, -1);
|
||||
}
|
||||
//normalize unicode if possible
|
||||
if (class_exists('Normalizer')) {
|
||||
$path = \Normalizer::normalize($path);
|
||||
}
|
||||
$path = \OC_Util::normalizeUnicode($path);
|
||||
|
||||
return $path;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue