I was thinking more in terms of re-running the page surrounded by
<cf_bodycontent> on request, parse it to color-code/pretty print it, and
output un-interpreted HTML to a window - only for debugging purposes, never
on production. Even if it was on production, I don't understand why this
would be a security risk if all a person would see would be HTML.
I am not sure what the other guy was suggesting about using Bjork's tag. All
I want to do is to be able to include a custom tag at the bottom of the page
that will spawn (by clicking a "view source" link) a window containing all
produced HTML as an alternative to "View Page Source."
-----Original Message-----
From: Russel Madere [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 5:47 PM
To: CF-Talk
Subject: RE: view source tag
Be real careful with this. The source viewer provided as a sample
application on the Cold Fusion install is a HUGE security hole.
I would suggest that you put any code you want to view like that in a
database and not use CFFILE to read the code from a disk. A bad guy could
pretty easily pull your registry from your windows server (if that is your
OS).
Russel
> -----Original Message-----
> From: stas [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 12, 2001 4:42 PM
> To: CF-Talk
> Subject: view source tag
>
>
> Hello all,
>
> I would like to make an on-demand view-source tag... basically
> something to
> include in a footer for debugging - a link that will reprocess
> the page with
> all the parameters that were passed to it and output HTML (not
> interpreted)
> to the window. The reason I want it is that a regular view-source
> returns a
> lot of garbage and doesn't have any color-coding in it. Does something
> similar exist already so that I can add features to it?
>
> Thanks
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists