Removed method isTestingOnOcisOrReva, and refactored its use

This commit is contained in:
Prarup Gurung
2023-03-02 10:43:37 +05:45
parent d9092d7e17
commit fab9bfc734
11 changed files with 147 additions and 1063 deletions
@@ -4466,12 +4466,6 @@ trait WebDav {
// slashes need to stay
$encodedPath = \str_replace('%2F', '/', \rawurlencode($path));
// in ocis even brackets are encoded
if (OcisHelper::isTestingOnOcisOrReva()) {
return $encodedPath;
}
// do not encode '(' and ')' for oc10
$encodedPath = \str_replace('%28', '(', $encodedPath);
$encodedPath = \str_replace('%29', ')', $encodedPath);
return $encodedPath;
}