-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30348 from nextcloud/backport/29965/stable21
[stable21] [stable23] Avoid use of iconv to get rid of unicode
- Loading branch information
Showing
2 changed files
with
11 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -691,16 +691,14 @@ public function testFetchListOfGroupsKnown() { | |
} | ||
|
||
public function intUsernameProvider() { | ||
// system dependent :-/ | ||
$translitExpected = @iconv('UTF-8', 'ASCII//TRANSLIT', 'fränk') ? 'frank' : 'frnk'; | ||
|
||
return [ | ||
['alice', 'alice'], | ||
['b/ob', 'bob'], | ||
['charly🐬', 'charly'], | ||
['debo rah', 'debo_rah'], | ||
['[email protected]', '[email protected]'], | ||
['fränk', $translitExpected], | ||
['fränk', 'frank'], | ||
[' UPPÉR Case/[\]^`', 'UPPER_Case'], | ||
[' gerda ', 'gerda'], | ||
['🕱🐵🐘🐑', null], | ||
[ | ||
|
@@ -734,9 +732,6 @@ public function groupIDCandidateProvider() { | |
* @param $expected | ||
*/ | ||
public function testSanitizeUsername($name, $expected) { | ||
if ($name === 'fränk' && PHP_MAJOR_VERSION > 7) { | ||
$this->markTestSkipped('Special chars do boom still on CI in php8'); | ||
} | ||
if ($expected === null) { | ||
$this->expectException(\InvalidArgumentException::class); | ||
} | ||
|