>>The CFML must be compiled in order for Java to execute it

Sure, but actually I don't want to execute the file, nor compile it.
Yhe file is actually a pdf file under .cfm extension.
This is to force execution of an application.cfm first in which I check if the 
user is authorized to open the file.
If yes, the application.cfm returns the document with the correct name and 
headers,
if not, it returns an error message.
This way, documents cannot be opened directely.

I've been using this trick for years, until this morning a user loaded some 
document containing by chance characters <cf... in its binary part.
This causes a compilation error, this is how I figured out that the document 
was compiled prior application.cfm was called.

I'm affraid I'll have to completely redesign my document retreiving system.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345525
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to