ports/www/twiki/files/patch-twikiutf8.diff
Sergey Skvortsov f2d6e45acb * remove incorrect utf8-patches
* fix 'make-port' target

Approved by:	maintainter (implicitly)
2008-06-16 13:50:18 +00:00

14 lines
481 B
Diff

# 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;
}