Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
OC_Util::isNonUTF8Locale: fix lint error
Signed-off-by: Naoto Kobayashi <[email protected]>
  • Loading branch information
YoitoFes authored and backportbot[bot] committed Nov 17, 2021
commit 4d1daa55490c7db6de5a36281d5a73ec1673049a
10 changes: 5 additions & 5 deletions lib/private/legacy/OC_Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -1279,12 +1279,12 @@ public function isHtaccessWorking(\OCP\IConfig $config) {
* @return bool
*/
private static function isNonUTF8Locale() {
if (function_exists("escapeshellcmd")) {
return ('' === escapeshellcmd('§'));
} else if (function_exists("escapeshellarg")) {
return ('\'\'' === escapeshellarg('§'));
if (function_exists('escapeshellcmd')) {
return '' === escapeshellcmd('§');
} elseif (function_exists('escapeshellarg')) {
return '\'\'' === escapeshellarg('§');
} else {
return (0 === preg_match('/utf-?8/i', setlocale(LC_CTYPE, 0)));
return 0 === preg_match('/utf-?8/i', setlocale(LC_CTYPE, 0));
}
}

Expand Down