Forum OpenACS Q&A: Abstract URL's with OpenACS on Windows NT

Collapse
Posted by Andrei Popov on
Just for your information, these are not working unless the following little change is made in ad-abstract-url.tcl in procedure ad_get_true_file_path:

Change

regsub -all {[^0-9a-zA-Z_/.]} $path {&} path_glob

into

regsub -all {[^0-9a-zA-Z_/.:]} $path {&} path_glob

The problem is that the above regsub prepends all characters other than alpha-num, "_", "/" and "." with a back-slash: . This way "d:/AOLserver/servers/server1/www/index" becomes "d:/AOLserver/servers/server1/www/index". Needless to say that the following call to check existence of a file in the filesystem fails.