Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-08 10:54:07

alexwest
Member
From: Järna, Sweden
Registered: 2004-08-04
Posts: 53

Strange behaviour with Forms : 404 redirect when saving

This is indeed a strange behaviour i am experiencing.

I have a form in my website were i have put all the HTML code for the <head> tag. I was updating this form today and, unexpectedly, when saving it, i got a 404 error. After some testing i have found the blame is to the script tag.

So, if a put the <script> tag in the form to call my Javascripts, the form is not saved and it is redirected to my 404 error page. I have tried saving a new form, only with a script tag and i get the same behaviour.

Otherwise, form saving is working fine.

I am using TXP 4.0.3.

Last edited by alexwest (2006-02-08 10:54:55)


be safe and happy

Offline

#2 2006-02-08 12:17:33

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Strange behaviour with Forms : 404 redirect when saving

If you can trace the behaviour to certain keywords used, like “script” then this probably applies:

http://textpattern.com/faq/89/412-precondition-failed

Offline

#3 2006-02-08 12:27:49

alexwest
Member
From: Järna, Sweden
Registered: 2004-08-04
Posts: 53

Re: Strange behaviour with Forms : 404 redirect when saving

Unsure if the problem lies there.

I have just done a fresh install of the textpattern code and have disabled all plugins.

I tried your suggestion:

Created a new form, with the only text in it being <code>script</code>. The form saves well and gets updated.

Then i tried saving it only with <code><script></code> and got redirected to the 404 page and had the following warning:

Warning: unknown_tag in public_html/textpattern/publish.php on line 911


be safe and happy

Offline

#4 2006-02-08 12:31:33

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Strange behaviour with Forms : 404 redirect when saving

i tried saving it only with <script> and got redirected

Yes, when I said keyword I was not only talking about alphanumeric words. In fact, it would be quite common to filter <script> rather than every occurence of script, because the amount of false positives would skyrocket otherwise.

This is a problem only your hosting company can tell you how to solve.

Offline

#5 2006-02-08 12:41:54

alexwest
Member
From: Järna, Sweden
Registered: 2004-08-04
Posts: 53

Re: Strange behaviour with Forms : 404 redirect when saving

Ok, thanks for your replies. I am going to try that route now.


be safe and happy

Offline

Board footer

Powered by FluxBB