Skip to content
Snippets Groups Projects
Commit d15897e5 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix string replacement with % (% seems to be prioriter than +). Fixes #5494

parent 7b58e145
No related branches found
No related tags found
No related merge requests found
......@@ -1689,8 +1689,9 @@ class ChatControl(ChatControlBase):
if 'location' in self.contact.pep:
location = self.contact.pep['location']._pep_specific_data
if ('lat' in location) and ('lon' in location):
uri = 'http://www.openstreetmap.org/?mlat=%(lat)s&mlon=%(lon)s&' + \
'zoom=16' % {'lat': location['lat'], 'lon': location['lon']}
uri = 'http://www.openstreetmap.org/?' + \
'mlat=%(lat)s&mlon=%(lon)s&zoom=16' % {'lat': location['lat'],
'lon': location['lon']}
helpers.launch_browser_mailer('url', uri)
def _on_window_motion_notify(self, widget, event):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment