summaryrefslogtreecommitdiff
path: root/www/twiki/files/patch-twikiutf8.diff
blob: f8e5a675001f61e684b471796a100f6cddaf0932 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- lib/TWiki.pm.bak	2013-03-25 12:03:24.000000000 +0000
+++ lib/TWiki.pm	2013-03-25 12:04:08.000000000 +0000
@@ -2722,8 +2722,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;
 }