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 16, 2021
commit acece8f4baf5c55e651593f43699b67124321a99
10 changes: 5 additions & 5 deletions lib/private/legacy/OC_Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -1244,12 +1244,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