freebsd-ports/www/twiki/files/patch-twikiutf8.diff
Bryan Drewery 838d6fe4b4 - Update to 5.4.1
PR:		ports/177030
Submitted by:	Chris Petrik <c.petrik.sosa@gmail.com> (maintainer)
2013-05-02 01:42:34 +00:00

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