In some cases a page name entered into Xowiki (for example) could contain a question mark "?" in it.
If this is the case, when links to access the page are generated with export_vars the urls are incorrect.
Export_vars assumes if the passed in -base url contains a ? that it already has query variables, and it does not append the ? before any additional specified query variables.
The only way I can think of solving this is application dependent. If an application wants to generate a URL and it knows the base does not contain query variables but might contain a question mark, the base should be url encoded. Each element of the path would need to be seperately url encoded otherwise the : and / in any url would be urlencoded breaking the url.
Does anyone have a good idea for how to handle this?