common: prepare path request in global variable
[sheet.git] / charset.plp
index 85b652bd89889c6c1586882571aea2ec3308cf16..4c01b78d0b6bb45717d7f7e7e35bce8f55d81bf5 100644 (file)
@@ -97,7 +97,7 @@ my @request = map {
                ();
        }
 } map { defined $ALIAS{$_} ? @{ $ALIAS{$_} } : $_ }
-       $ENV{PATH_INFO} =~ /\w/ ? split(m{[/+\s]}, $ENV{PATH_INFO}) : 'default';
+       $Request =~ /\w/ ? split(m{[/+\s]}, $Request) : 'default';
 my $NOCHAR = chr 0xFFFD;
 
 for my $cp437 (grep {$request[$_]->{set} eq 'cp437'} 0 .. $#request) {