summaryrefslogtreecommitdiff
path: root/www/twiki/files/patch-twikiutf8.diff
blob: 61d4c3cf96f5876cb271c376b838082667569a4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# From: http://dot-and-thing.blogspot.com/2008/03/twiki-utf8.html
diff -urE --exclude=data --exclude=pub twiki-4.2/lib/TWiki.pm twiki/lib/TWiki.pm
--- lib/TWiki.pm	2008-01-22 06:18:55.000000000 +0300
+++ lib/TWiki.pm	2008-03-11 18:28:34.000000000 +0300
@@ -2405,7 +2405,8 @@
 sub urlDecode {
     my $text = shift;
 
-    $text =~ s/%([\da-f]{2})/chr(hex($1))/gei;
+    $text =~ s/%u([\da-f]+)/chr(hex($1))/eig;
+	$text =~ s/%([\da-f]{2})/chr(hex($1))/gei;
 
     return $text;
 }