forked from github/kensanata.oddmuse
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:
2
wiki.pl
2
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
|
||||
|
||||
Reference in New Issue
Block a user