Subject: Location map service: url double encoding (Last and previous devel)
Bug into unb_lib/users.inc.php (lines 391-399) and unb_lib/cp.inc.php (lines 1742-1751)
exactly in UnbLink(... urlencode(...) ... ).
There also is suggestion to make http://maps.google.com/maps?q=%s as default value, because map24 badly handles most non-USA cities and abbreviations, and also have no translation to other languages.
- if ($show_location)
- {
- $tpitem['location'] = '';
- if (rc('location_link'))
- $tpitem['location'] .= '<a href="' . UnbLink(str_replace('%s', urlencode($user->GetLocation()), rc('location_link')), null, true, /*sid*/ false, /*derefer*/ true) . '">';
- $tpitem['location'] .= t2h($user->GetLocation());
- if (rc('location_link'))
- $tpitem['location'] .= '</a>';
- }
exactly in UnbLink(... urlencode(...) ... ).
There also is suggestion to make http://maps.google.com/maps?q=%s as default value, because map24 badly handles most non-USA cities and abbreviations, and also have no translation to other languages.

Night Nord
Show profile
Link to this post