How do you configure Apache/PHP to accept slashes in query strings?

后端 未结 7 478
太阳男子
太阳男子 2020-12-10 17:55

I have two Apache servers running PHP. One accepts forward-slashes in the query string and passes it along to PHP in the expected way, for example:

http://server         


        
7条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-10 18:45

    http://server/index.php?url=http://foo.bar is not a valid url. You have to encode the slashes. I think browsers do this automagically, so maybe you were testing with different browsers?

    Or perhaps it's the AllowEncodedSlashes setting?

提交回复
热议问题