Bug or feature?!

Hi all,

Hereâ??s a weird one. If I include the words â??mkdir radiantâ? anywhere in
a
page, even between

tags, the page wonâ??t save â?? it returns:

Precondition Failed

The precondition on the request for the URL /admin/pages/13/child/new
evaluated to false.

Is this some strange anti-script-injection measure, or is it just a
weird
bug? Whatâ??s it actually testing for?

Cheers,

Jake.

On Aug 28, 2006, at 5:30 PM, Jake Liddell wrote:

The precondition on the request for the URL /admin/pages/13/child/
new evaluated to false.

Is this some strange anti-script-injection measure, or is it just a
weird bug? What?s it actually testing for?
This would be due to your hosting provider, its a common way to try
to reduce spam/cracking attacks. All these checks happen before
Radiant ever sees your request, so there isn’t much that can be done
on that end. Try contacting the company you get web-space from.

Bodhi

Is this some strange anti-script-injection measure, or is
it just a
weird bug? What’s it actually testing for?
This would be due to your hosting provider, its a common way to try
to reduce spam/cracking attacks. All these checks happen before
Radiant ever sees your request, so there isn’t much that can be done
on that end. Try contacting the company you get web-space from.

Another way around it might be to replace some of your string with
entity declarations, ie.

mkdir radiant

If you’re really lucky, you might be able to get away with just
replacing the space (mkdir radiant) which wont destroy the
readability so much.

I think it’s actually the mkdir that’s the problem. My host (textdrive)
uses mod_security. If you’re hosting via Appache you can set up
particular
rules to be ignored via the .htaccess file. However, if you’re passing
through requests to lighttpd you can’t switch it off at a rule level.

Textdrive will allow you to disable it altogether, but I haven’t done
that
just yet, as I’m assuming it might be useful, if it doesn’t get in the
way
too much. I’ve got round this particular problem by just using English
instead of code “Create a directory called radiant”, and assuming the
punter
is bright enough to work it out!

Cheers,
Jake.