invalidTag?

20 views
Skip to first unread message

Indy

unread,
Oct 25, 2010, 1:37:45 PM10/25/10
to Splash CMS
Hi guys

I'm using Splash from this fork: http://github.com/raulriera/SplashCMS/

I've run into a small problem... I'm creating a new layout that has
the following code:

<link rel="stylesheet" type="text/css" href="stylesheets/styles.css" /
>
<link rel="stylesheet" type="text/css" href="javascripts/fancybox/
jquery.fancybox-1.3.1.css" />
<link rel="stylesheet" type="text/css" href="stylesheets/blue-
green.css" media="screen" />
<script type="text/javascript" src="javascripts/jquery.js"></script>
<script type="text/javascript" src="javascripts/jquery.tools.js"></
script>
<script type="text/javascript" src="javascripts/fancybox/
jquery.fancybox-1.3.1.pack.js"></script>
<script type="text/javascript" src="javascripts/site.js"></script>
<script type="text/javascript" src="javascripts/demo.js"></script>

When I save it, the editor saves them as:

<link rel="stylesheet" type="text/css" href="/public/stylesheets/
styles.css" />
<link rel="stylesheet" type="text/css" href="/public/javascripts/
fancybox/jquery.fancybox-1.3.1.css" />
<link rel="stylesheet" type="text/css" href="/public/stylesheets/blue-
green.css" media="screen" />
<invalidTag type="text/javascript" src="/public/javascripts/
jquery.js"></script>
<invalidTag type="text/javascript" src="/public/javascripts/
jquery.tools.js"></script>
<invalidTag type="text/javascript" src="/public/javascripts/fancybox/
jquery.fancybox-1.3.1.pack.js"></script>
<invalidTag type="text/javascript" src="/public/javascripts/
site.js"></script>
<invalidTag type="text/javascript" src="/public/javascripts/
demo.js"></script>

Notice how the link tags are ok, but the script tags are converted
into invalidType.

I searched the group and there were a couple of other mails on this,
but not sure if I see an answer to this.

Can someone help?

Thanks

Indy

Clarke Bishop

unread,
Oct 25, 2010, 2:04:53 PM10/25/10
to spla...@googlegroups.com
Add this to your settings/app.cfm file:

<cfset this.scriptprotect="none">

This problem is caused by ColdFusion's script protection functions.

As long as only logged in and trusted users are filling out forms, it's safe
to have this on. I had to use this setting in my Splash app.

Clarke

Indiver Nagpal

unread,
Oct 25, 2010, 2:11:27 PM10/25/10
to spla...@googlegroups.com
Thanks for the lightening-fast response Clarke.

That did it.

Clarke Bishop

unread,
Oct 25, 2010, 2:56:10 PM10/25/10
to spla...@googlegroups.com

You have to be fast if you want to beat Raul ;).

 

   Clarke

raulriera

unread,
Oct 26, 2010, 4:43:35 PM10/26/10
to Splash CMS
hehe that was too fast :P

On Oct 25, 8:56 pm, "Clarke Bishop" <cbis...@resultantsys.com> wrote:
> You have to be fast if you want to beat Raul ;).
>
>    Clarke
>
> From: spla...@googlegroups.com [mailto:spla...@googlegroups.com] On Behalf Of Indiver Nagpal
> Sent: Monday, October 25, 2010 2:11 PM
> To: spla...@googlegroups.com
> Subject: Re: [splashcms] invalidTag?
>
> Thanks for the lightening-fast response Clarke.
>
> That did it.
>
Reply all
Reply to author
Forward
0 new messages