Skip to content

Commit

Permalink
Item14415: use NFKD when finding insertion point in WikiUsers
Browse files Browse the repository at this point in the history
  • Loading branch information
gac410 committed Jun 7, 2017
1 parent 6cda2e6 commit 4a3ace6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions TopicUserMappingContrib/lib/Foswiki/Users/TopicUserMapping.pm
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ use Error qw( :try );
use Foswiki::ListIterator ();
use Foswiki::Func ();

use Unicode::Normalize;

#use Monitor;
#Monitor::MonitorMethod('Foswiki::Users::TopicUserMapping');

Expand Down Expand Up @@ -393,8 +395,6 @@ sub _maintainUsersTopic {
my $output = '';
foreach my $line ( split( /\r?\n/, $input || '' ) ) {

# TODO: I18N fix here once basic auth problem with 8-bit user names is
# solved
if ($entry) {
my ( $web, $name, $odate ) = ( '', '', '' );
if ( $line =~
Expand Down Expand Up @@ -427,7 +427,9 @@ m/^\s+\*\s($Foswiki::regex{webNameRegex}\.)?($Foswiki::regex{wikiWordRegex})\s*(
$insidelist = 2;
$name = '';
}
if ( ( $name && ( $wikiname le $name ) ) || $insidelist == 2 ) {
if ( ( $name && ( NFKD($wikiname) le NFKD($name) ) )
|| $insidelist == 2 )
{

# found alphabetical position or last record
if ( $wikiname eq $name ) {
Expand Down

0 comments on commit 4a3ace6

Please sign in to comment.