mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-22 17:16:28 -05:00
Add test validating that UTF is allowed in display names
This commit is contained in:
@@ -83,7 +83,7 @@ func TestSettingsBundleProperties(t *testing.T) {
|
||||
CustomError{},
|
||||
},
|
||||
{
|
||||
"UTF",
|
||||
"UTF disallowed on keys",
|
||||
"सिम्प्ले-bundle-key",
|
||||
"सिम्प्ले-key",
|
||||
"सिम्प्ले-display-name",
|
||||
@@ -96,6 +96,15 @@ func TestSettingsBundleProperties(t *testing.T) {
|
||||
Status: "Internal Server Error",
|
||||
},
|
||||
},
|
||||
{
|
||||
"UTF allowed on display name",
|
||||
"simple-bundle-key",
|
||||
"simple-key",
|
||||
"सिम्प्ले-display-name",
|
||||
"simple-extension-name",
|
||||
"123e4567-e89b-12d3-a456-426652340000",
|
||||
CustomError{},
|
||||
},
|
||||
{
|
||||
"bundle key with ../ in the name",
|
||||
"../file-a-level-higher-up",
|
||||
|
||||
Reference in New Issue
Block a user