假设我们有如下所示的Urls
- complete guide with examples
- http://localhost:8080/sample/url/./something?queryparam=something
- http://localhost:8080/sample/url/../something?queryparam=something
这些是有效网址,可以获取一些响应。 但是只有第三个网址正确被命中,命中后的前两个被更改为
http://localhost:8080/sample/url/.../something?queryparam=something(已删除“ ./”)
http://localhost:8080/sample/url/something?queryparam=something(已删除“ ../”)
但适用于第三个网址。
这种转义是怎么发生的?