mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Add check whether escapeshellcmd behaves the same as basename
Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
This commit is contained in:
parent
516cc3ba18
commit
7bb43a1e13
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue