Not logged in. · Lost password · Register
Forum: Support Bug reports and troubleshooting RSS
Location map service: url double encoding (Last and previous devel)
example: '%' == '%2525'
Avatar
Night Nord #1
Member since Feb 2008 · 15 posts · Location: Russia, Saint-Petersburg
Group memberships: Members
Show profile · Link to this post
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)

  1. if ($show_location)
  2. {
  3.     $tpitem['location'] = '';
  4.     if (rc('location_link'))
  5.         $tpitem['location'] .= '<a href="' . UnbLink(str_replace('%s', urlencode($user->GetLocation()), rc('location_link')), null, true, /*sid*/ false, /*derefer*/ true) . '">';
  6. $tpitem['location'] .= t2h($user->GetLocation());
  7.     if (rc('location_link'))
  8.         $tpitem['location'] .= '</a>';
  9. }

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.
This post was edited on 2008-03-01, 19:21 by Night Nord.
Avatar
Yves (Administrator) #2
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Thank you. I haven't looked at the function for a long time. Works better now.

Yes, Google Maps is to prefer today. Again, this setting is quite old. I'll change that. Map24 used to be good in Germany, later also Europe (no idea whether it's been available somewhere else, too, then).
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Avatar
Night Nord #3
Member since Feb 2008 · 15 posts · Location: Russia, Saint-Petersburg
Group memberships: Members
Show profile · Link to this post
Thank you.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20120620-dev, © 2003-2011 by Yves Goergen
Page created in 175.6 ms (117.3 ms) · 54 database queries in 117.7 ms
Current time: 2013-05-19, 06:37:12 (UTC +02:00)