Revert "GetId no longer decodes path_info"

This reverts commit 1ee235c949.

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.
This commit is contained in:
Alex Schroeder
2016-08-10 14:56:00 +02:00
parent 0c0efdd2c8
commit 02fcabfdbc

View File

@@ -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