aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaoto Kobayashi <naoto.kobayashi4c@gmail.com>2021-11-15 18:33:50 +0900
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-11-17 09:01:40 +0000
commit7bb43a1e135cc92b31addb9f5535fa45ad078ad7 (patch)
treea2f30d20a4f599c74f8668d731a8a362fe9dd6fd
parent516cc3ba18510d513af860bcf6dc135e0fc3c721 (diff)
downloadnextcloud-server-7bb43a1e135cc92b31addb9f5535fa45ad078ad7.tar.gz
nextcloud-server-7bb43a1e135cc92b31addb9f5535fa45ad078ad7.zip
Add check whether escapeshellcmd behaves the same as basename
Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
-rw-r--r--tests/lib/UtilTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/UtilTest.php b/tests/lib/UtilTest.php
index bcabf7a7e6f..3cecdd3713a 100644
--- a/tests/lib/UtilTest.php
+++ b/tests/lib/UtilTest.php
@@ -82,6 +82,8 @@ class UtilTest extends \Test\TestCase {
$locale = setlocale(LC_CTYPE, 0);
setlocale(LC_CTYPE, 'C');
$this->assertEquals('', escapeshellcmd('§'));
+ setlocale(LC_CTYPE, 'C.UTF-8');
+ $this->assertEquals('§', escapeshellcmd('§'));
setlocale(LC_CTYPE, $locale);
}