From 02fcabfdbcbbb623af8d0cca42bb66ef808eaa9c Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Wed, 10 Aug 2016 14:56:00 +0200 Subject: [PATCH] Revert "GetId no longer decodes path_info" This reverts commit 1ee235c949ddb97ae509d8a5f2eeaa338907b390. Sadly, I discovered that my websites no longer correctly displayed pages containing characters such as the EN DASH. Reverting this commit seems to solve the problem. --- wiki.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiki.pl b/wiki.pl index c75258ff..78ded44f 100644 --- a/wiki.pl +++ b/wiki.pl @@ -1301,7 +1301,7 @@ sub GetId { $id = decode_utf8(join('_', $q->keywords)); # script?p+q -> p_q } if ($UsePathInfo and $q->path_info) { - my @path = split(/\//, $q->path_info); + my @path = map { decode_utf8($_) } split(/\//, $q->path_info); $id ||= pop(@path); # script/p/q -> q foreach my $p (@path) { SetParam($p, 1); # script/p/q -> p=1