Managed to narrow the code down a lot more:
Sorry to be a pain but I really thought I had it cracked by using uri_escape
in the GetQueryString
subroutine but now I'm really out of ideas otherwise I wouldn't ask.
Any insights are much appreciated.
Martin
HTML::Escape isn't supposed to escape "#" because "#" isn't unsafe for HTML.The problem is that you're not URI-escaping your data before you're putting it into a URI; use URI::Escape for that.