From: Joris B. <jor...@ad...> - 2004-11-13 23:51:34
|
hi, i have a problem with .tml processing. only .tml file in root folder and .tml in folder that contains xxx.tml file seem to be processed, no files in between. this appears to be related to .. appearing in document root setting (Config docRoot in tclhttpd.rc) i.e. docRoot by default is aleays in the form of xxxxx/../htdocs/ on my machine, which confuses Doc_GetPath in doc.tcl i solved this by adding a "file normalize" in doc.tcl: # Start at the Doc_AddRoot point if {[info exist Doc(root,$data(prefix))]} { set root $Doc(root,$data(prefix)) # always start in the rootdir set dirs $Doc(root) } else { set root $Doc(root,/) set dirs {} } into: # Start at the Doc_AddRoot point if {[info exist Doc(root,$data(prefix))]} { set root $Doc(root,$data(prefix)) >> set root [file normalize $root] # always start in the rootdir set dirs $Doc(root) } else { set root $Doc(root,/) set dirs {} } any comments ? is this indeed a problem or am i missing something ? joris. -- Programmers don't byte, they just nibble a bit. http://www.balletshaw.be |