]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/unicode_chars_in_wikiname_break_auth.mdwn
downgrade missing shortcuts page error to warning
[ikiwiki.git] / doc / bugs / unicode_chars_in_wikiname_break_auth.mdwn
1 I spent hours trying to understand why my wiki suddenly refused me to log in (using passwordauth).
2 The failure message was always: `login failed, perhaps you need to turn on cookies?`
3
4 Inspecting the cookie information (thanks to Iceweasel's webdeveloper add-on), I realized there were some weird-looking encoded chars in the cookie name.
5
6 Replacing "ยท" with "-" in `wikiname` fixed this login issue.
7
8 > Hmm, Recai sent me a patch a long time ago to handle utf-8 here by encoding
9 > the wikiname. But it doesn't seem to work, somehow the encoded utf-8
10 > value still doesn't make it through. (CGI::Session seems to have underermined utf-8
11 > issues too.) Seems like I will have to possibly break some sessions and
12 > entity-encode the wikiname in the cookie.. [[done]]. --[[Joey]]
13
14 >> I confirm it fixes the bug for me. --[[intrigeri]]
15
16 (BTW, such a char was replaced by -I don't remember what encoding thingie- in my setup file, when running `ikiwiki-transition setupformat`.)
17
18 > Thanks for the heads up, fixed that too. --[[Joey]]
19
20 >> I confirm it fixes the bug for me. --[[intrigeri]]