0

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?

2 Answers 2

3

you will need to urlencode() your input

Sign up to request clarification or add additional context in comments.

Comments

1

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.