]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/removing_pages_with_utf8_characters.mdwn
a962a328ad1bbcbb4dff51d2f921ccca55bbf973
[ikiwiki.git] / doc / bugs / removing_pages_with_utf8_characters.mdwn
1 I have a page with the name "umläute". When I try to remove it, ikiwiki says:
2
3 Error: ?umläute does not exist 
4
5 I wrote the following patch, which seems to work on my machine. I'm running on FreeBSD 6.3-RELEASE with ikiwiki-3.20100102.3 and perl-5.8.9_3.
6
7     --- remove.pm.orig      2009-12-14 23:26:20.000000000 +0100
8     +++ remove.pm   2010-01-18 17:49:39.000000000 +0100
9     @@ -193,6 +193,7 @@
10                             # and that the user is allowed to edit(/remove) it.
11                             my @files;
12                             foreach my $page (@pages) {
13     +                               $page = Encode::decode_utf8($page);
14                                     check_canremove($page, $q, $session);
15      
16                                     # This untaint is safe because of the
17
18