Commits

Olemis Lang committed b19c4fb

IG: Replace + sign with %2b in query URLs

Comments (0)

Files changed (1)

trac-dev/gviz/tracgviz/ig/wiki.py

         border = self.resolve_link_url(formatter, spec_args['border'])
         if border:
             spec_args['border'] = border
+        # URL encode plus sign in data table query (see #114)
+        if '_table_query_url' in args:
+            args['_table_query_url'] = args['_table_query_url'].replace('+',
+                                                                        '%2b')
         gadget_params = dict(chain([('url', url), ('synd', 'open')], \
                 (['up_' + k, \
                  (v.startswith('[') and v.endswith(']')) and \