How to pass URL in URL (as GET parameter) using PHP?

前端 未结 2 730
庸人自扰
庸人自扰 2020-12-10 15:21

I\'m having some problems passing URL\'s as GET parameter. When I try to access:

http://www.linkebuy.com.br/linkebuy/parceiro?url=http%3A%2F%2Fwww.google.com

<
相关标签:
2条回答
  • 2020-12-10 15:28

    If you can't get rid of the restriction you can pass the url in 2 parts like this

    http://www.linkebuy.com.br/linkebuy/parceiro?protocol=http&url=www.google.com
    

    And then parse it on your code to make the full url for the redirect.

    0 讨论(0)
  • 2020-12-10 15:42

    You should use urlencode when you pass anything as URL parameter

    0 讨论(0)
提交回复
热议问题