Files
ports/www/twiki/files/patch-twikiutf8.diff
2026-10-04 04:07:15 +00:00

14 lines
346 B
Diff

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