mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 12:56:28 -04:00
14 lines
481 B
Diff
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;
|
|
}
|