I have this:
mysite.com/index.php?refferer=http://www.refferersite.com/index.php?var1=a&var2=b
this
http://www.refferersite.com/index.php?var1=a&var2=b
Will become this:
http://www.refferersite.com/index.php?var1=a
How can I fix this?
Use urlencode on the url.
The link will then become:
mysite.com/index.php?refferer=http%3A%2F%2Fwww.refferersite.com%2Findex.php%3Fvar1%3Da%2a6var2%3Db
As you can see, the ampersands are escaped.