--
TWiki:Main/LingyunTuo
- 2012-02-14
I did an upgrade from 5.1.0 to 5.1.1 and installed
LdapContrib for LDAP authentication. The problem is below:
- If $TWiki::cfg{Site}{CharSet} is defined in lib/LocalSite.cfg, error occurs when editing Chinese text in WysiwygPlugin;
- If $TWiki::cfg{Site}{CharSet} is not defined in lib/LocalSite.cfg, error occurs when login using LDAP authentication;
I could login with $TWiki::cfg{Site}{CharSet} defined first and remove/uncomment it in lib/LocalSite.cfg manually after login. Then it's OK to use
WysiwygPlugin to edit Chinese text and save it correctly in single user mode.
A stupid workaround on this problem is as follow:
- Define another parameter $TWiki::cfg{Site}{LdapCharSet} in lib/LocalSite.cfg but remove/uncomment the line of $TWiki::cfg{Site}{CharSet}.
- Change LdapContrib.pm Line 2340 from:
my $charset = $TWiki::cfg{Site}{CharSet};
To:
my $charset = $TWiki::cfg{Site}{LdapCharSet};
This might be a problem of Wysiwyg instead of
LdapContrib as I'm not familiar with TWiki development.