egoist37 / slimstat

Automatically exported from code.google.com/p/slimstat
GNU General Public License v2.0
0 stars 0 forks source link

Bad UTF URL decoding #63

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. used by PHP integration

What is the expected output? What do you see instead?

URL "/some/206-Ovládanie-KDE-na-diaľku is saved and showed as 
/some/206-Ovl%C3%A1danie-KDE-na-dia%C4%BEku

What version of SlimStat are you using? On what operating system? Which web
browser are you using?

SlimStat v2.2, No browser depended

Please provide any additional information below.

This problem happens because URL is never decoded, for me work this in 
stats_include.php:

$data['resource'] = mb_substr( SlimStat::utf8_encode( 
urldecode($data['resource']) ), 0, 255 );

urldecode added herre, but maybe is there better place for this...

Original issue reported on code.google.com by li...@slavino.sk on 18 Sep 2010 at 4:11