Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: clean-path

From: arolls:bigpond:au at: 4-Dec-2000 19:43

> Anton wrote: > > 'clean-path claims that it accepts urls, so I guess the feature was > forgotten to be implemented. > > You should report it to feedback, I reckon. > > I wouldn't. Where does this URL point to: > http://members.nbci.com/AndrewMartin/../ > ? > Could Rebol have guessed: > http://www.nbci.com/ > ?
Maybe it can. If you look at a trace/net of read http://members.nbci.com/AndrewMartin/../ you can see (many of): Net-log: "HTTP/1.1 302 Found" URL Parse: none none www.nbci.com none none none Net-log: ["Opening tcp for" HTTP] Net-log: {GET / HTTP/1.0 Accept: */* Connection: close User-Agent: REBOL 0.10.38.3.1 Host: members.nbci.com Extracting the above www.nbci.com is a little bit more complicated than just operating the same as local paths but we should at least try, hey? Anyway, local paths can lead to trouble too, can't they? What about symbolic links and volumes mounted as /blah in unix-land? eg. /usr/../../ Where does that take you? (Is that a bad example?) So I still think it should be reported. This has been a code-free document. Anton.