From: Shawn K. <sha...@ea...> - 2004-11-06 05:34:55
|
Hi Colin -- and Mathias -- and all This is about as much as I can reasonably do to make this a bit easier to fix. I am running tcl847 threaded and 3.5.1.x (a very recent download - tclhttpd351dist.zip - I believe) tclhttpd server. The filename referenced in the link (../swamp/CV/xyz.html) doesn't exist -- which causes a redirect to one that does, an xyz.htm. I am not sure if this is a contributing factor, but you may well have to do this to get it to happen because there is some string handling during the redirect (I think additionally that it may need to be two {meaning more than one) directories down from the docroot for the bug to occur). Ultimately it gets down to uri::GetUPHP which is where the url string gets whacked. in proc uri::GetUDHP: $matchEnd = 5 $url == swamp/CV/frame.htm line 56 >set url [string range $url $matchEnd end] $url == /CV/frame.htm I am willing to have a go at fixing this -- but -- this is a bit humbling -- Despite trying to determine why this is wrong -- I am nowhere near familiar enough with the code base (or regexp) to address this seriously. If you need more information I have a reproducible test case -- Although it appears that it may not be that hard to reproduce. If need be - I can open a debugging port to the outside and allow you to debug it on my server. Have fun. I'd be interested in hearing what the reason/solution is. Shawn A-----Original Message----- From: tcl...@li... [mailto:tcl...@li...]On Behalf Of Shawn Kielty Sent: Thursday, November 04, 2004 10:40 PM To: Shawn Kielty; Tclhttpd users Subject: RE: [Tclhttpd-users] Problem with relative links? Hi -- I started to fix this and found that once I had fussed with it for awhile it worked -- so I am not sure what the problem might have been -- I did however save off the original file -- which you can get from my site -- at http://shawnkielty/home/newhome_bug.tml -- It still has this behavior -- but I am at a bit of a loss to explain it. Perhaps some spurious non printing character or anomaly in the file. Shawn -----Original Message----- From: tcl...@li... [mailto:tcl...@li...]On Behalf Of Shawn Kielty Sent: Thursday, November 04, 2004 10:21 PM To: Tclhttpd users Subject: [Tclhttpd-users] Problem with relative links? Howdy folks I am noticing that my relative links don't all work as they used to -- and I believe this may be a bug -- The file <DocRoot>/home/newhome.tml creates the following html: <td> <span style="font-size:10.0pt;font-family:Arial;color:#F9E4C9"> <b><a href="../swamp/start.html" target="_top"> <span style="color:#F9E4C9">More ...</span></a></b></span></td> <td> <span style="font-size:10.0pt;font-family:Arial;color:#F9E4C9"> <b><a href="../swamp/CV/frame.html" target="_top"> <span style="color:#F9E4C9">Still More ...</span></a></b></span></td> <td> Where the first link "../swamp/start.html" works -- but the second "../swamp/CV/frame.html" doesn't. clicking on the link results in the server trying to fetch <DocRoot>/CV/frame.htm, which seems clearly wrong. it is interesting to note that the browser status bar does -- in fact -- display the correct location. This was working previously -- It's easy enough for me to fix -- in my own pages -- but I believe something is not happening as it should. Shawn Shawn Kielty http://www.shawnkielty.com (480)636-1524 (510) 828-9411 ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ TclHttpd-users mailing list Tcl...@li... https://lists.sourceforge.net/lists/listinfo/tclhttpd-users ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ TclHttpd-users mailing list Tcl...@li... https://lists.sourceforge.net/lists/listinfo/tclhttpd-users |