mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -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
d2eb5aaa6d
commit
25f15f86a9
1 changed files with 2 additions and 0 deletions
|
|
@ -79,6 +79,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