]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Some keyphrases were not decoded by decodeutfkeys plugin.
authoreldy <>
Mon, 22 Dec 2003 20:06:45 +0000 (20:06 +0000)
committereldy <>
Mon, 22 Dec 2003 20:06:45 +0000 (20:06 +0000)
wwwroot/cgi-bin/plugins/decodeutfkeys.pm

index b0b754e9caf3e07cc69d9149fd123013bbf0e551..ec9d07b35ea590982516f378448ae0d8df554102 100644 (file)
@@ -61,6 +61,7 @@ sub DecodeKey_decodeutfkeys {
        my $string = shift;
        my $encoding = shift;
        if (! $encoding) { error("Function DecodeKey from plugin decodeutfkeys was called but AWStats don't know language code required to output new value."); }
+       $string =~ s/\\x(\w\w)/%$1/gi;  # Change "\xc4\xbe\xd7\xd3\xc3\xc0" into "%c4%be%d7%d3%c3%c0"
        $string=URI::Escape::uri_unescape($string);
        if ( $string =~ m/^([\x00-\x7f]|[\xc2-\xdf][\x80-\xbf]|\xe0[\xa0-\xbf][\x80-\xbf]|[\xe1-\xef][\x80-\xbf][\x80-\xbf]|\xf0[\x90-\xbf][\x80-\xbf][\x80-\xbf]|[\xf1-\xf7][\x80-\xbf][\x80-\xbf][\x80-\xbf])*$/ )
        {