Index: openacs-4/packages/acs-templating/www/doc/demo/compile.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/demo/compile.tcl,v diff -u -r1.1.1.1.30.4 -r1.1.1.1.30.5 --- openacs-4/packages/acs-templating/www/doc/demo/compile.tcl 26 May 2016 17:22:32 -0000 1.1.1.1.30.4 +++ openacs-4/packages/acs-templating/www/doc/demo/compile.tcl 28 May 2016 09:51:22 -0000 1.1.1.1.30.5 @@ -11,7 +11,7 @@ ad_complain "Only files within this directory may be shown." } set dir [file dirname [ad_conn file]] - if { ![file readable $dir/$file] } { + if {![file readable $dir/$file] || [file isdirectory $dir/$file]} { ad_complain "requested file is not readable." } }