Yes tested and it works.

I create the real file so I can disallow all directory listings.

I could do this by testing for the (non)existence of a file extension, however that isn't technically cross-platform etc...

so i create the file to test whether it's a directory, and disallow if it is. the 'exists' test is just there because i already have the File object anyway.

I figured since I'm only executing the logic for things that start with /asset/ctx/ the overhead shouldn't be noticeable, however on second thought maybe this isn't a good idea?

what do you think?

p.

On 25/11/2010 10:36 PM, Thiago H. de Paula Figueiredo wrote:
On Thu, 25 Nov 2010 00:03:03 -0200, Paul Stanton <p...@mapshed.com.au> wrote:

Thanks Thiago,

Hi!

AFAIK you don't need to check for the real file. Just checking the URL is enough.
Besides this, I think it is ok. Have you tested it already?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to