I need to provide directory access to files on a Linux server, and the file names contain spaces. The site is running OpenACS 4.6.3 and AOLserver AOLserver/3.3.1+ad13. I have the nsd-config.tcl file set as follows:
ns_section "ns/server/${servername}"
ns_param directoryproc css_dirlist ;# the name of the new procedure.
ns_param directorylisting fancy ;# Can be simple or fancy.
In the directory listing, it appears that the filename links are being truncated after the first space.
I tried modifying the __ns_dirlist function in fastpath.tcl to use the string map function to replace spaces with %20, but it does not appear that the function is being called (I added some ns_log lines, and nothing is showing up in the log file). Then I downloaded the css_dirlist from http://zmbh.com/dirlist/, modified nsd.tcl accordingly, but it doesn't appear that it is being called either.
Does OpenACS 4.x do directory listings differently? I don't have problems on my OpenACS 3.x site.