[views] fix url encoding problem in igeocodable views
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Sat, 18 Apr 2009 15:49:40 -0500
changeset 1587 56e347b8189c
parent 1586 652e625004ae
child 1588 79755c89b4f3
[views] fix url encoding problem in igeocodable views
web/views/igeocodable.py
--- a/web/views/igeocodable.py	Sat Apr 18 15:48:42 2009 -0500
+++ b/web/views/igeocodable.py	Sat Apr 18 15:49:40 2009 -0500
@@ -71,6 +71,7 @@
             loadurl = self.build_url(rql=rql, vid='geocoding-json')
         else:
             loadurl = self.build_url(rql=rql, vid='geocoding-json', **urlparams)
+        loadurl = loadurl.replace('&','&amp;')
         self.w(u'<div style="width: %spx; height: %spx;" class="widget gmap" '
                u'cubicweb:wdgtype="GMapWidget" cubicweb:loadtype="auto" '
                u'cubicweb:loadurl="%s" cubicweb:uselabel="%s"> </div>' % (width, height, loadurl, uselabel))