S
Sunny
Hi all,
I have found a possible bug in the Uri class constructor.
When I make something like this:
test = new Uri(@"http://www.test.com/dir1/page1.html");
test2 = new Uri(test, @"../../page2.html");
in test2.AbsolutetPath I receive http://www.test.com/../page2.html.
I know that you can not go before the /test/ dir, and that why there is
strange result. And if you try to use test2 ageist a website, it crashes,
while if you open such a page (page1.htm) in a browser (IE) and click on
such a link, it navigates to http://test.com/page2.html. So I'm wondering
....
And yes, there is such a page (not mine) which I have to parse.
I am checking for such a links and replace "../" with "", but maybe this
have to be reposted somewhere as a possible bug.
Sunny
I have found a possible bug in the Uri class constructor.
When I make something like this:
test = new Uri(@"http://www.test.com/dir1/page1.html");
test2 = new Uri(test, @"../../page2.html");
in test2.AbsolutetPath I receive http://www.test.com/../page2.html.
I know that you can not go before the /test/ dir, and that why there is
strange result. And if you try to use test2 ageist a website, it crashes,
while if you open such a page (page1.htm) in a browser (IE) and click on
such a link, it navigates to http://test.com/page2.html. So I'm wondering
....
And yes, there is such a page (not mine) which I have to parse.
I am checking for such a links and replace "../" with "", but maybe this
have to be reposted somewhere as a possible bug.
Sunny