开发者

relative path traversing, is this valid?

开发者 https://www.devze.com 2023-01-19 16:43 出处:网络
I have a an XML file where I need to get up 2 dirs to get a file (from water to fire) <album basepath=\"albums/water/images\">

I have a an XML file where I need to get up 2 dirs to get a file (from water to fire)

<album basepath="albums/water/images">
    &l开发者_JAVA百科t;img src="001.jpg" />
    <img src="002.jpg" />
    <img src="../../fire/images/005.jpg" />
</album>

So my question is if

albums/water/images/../../fire/images/005.jpg

is a valid path?


Yes, it's a valid path

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号