Change to mysql encoding?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Denver Dave
    Member
    • Sep 2004
    • 49

    Change to mysql encoding?

    I'll submit an informational trouble ticket while I'm tracking down the issue, but I was wondering if anyone else has started getting the following error when saving html code from a form to a mysql database where the code includes items like <br><br> (the htlm tags seem to have to be together to cause the problem).

    We are getting
    = = = = = = =
    Forbidden
    You don't have permission to access / on this server.
    = = = = = = =

    We do not get the error if we don't have tags or two tags are not together.

    I'm suspecting an an encoding issue and am looking into that, however, I thought I'd ask in case anyone knows of an upgrade in the last few days or might have an insight.

    Thanks.
  • Denver Dave
    Member
    • Sep 2004
    • 49

    #2
    Oddly, this is not a MySql issue at all, but a form submission issue.

    Something has changed on all domains on my Dathorn account so that when a form is submitted that includes a name= and also 2 html tags together, the error

    Forbidden

    You don't have permission to access /test.php on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    However, if either the name="test1" or one of the HTML tags is removed, then the form is submitted

    <form action="test.php" method="post">
    <textarea name="test1"><br><br>test</textarea>
    <input type="submit">
    </form>
    gives the error

    <form action="test.php" method="post">
    <textarea name="test1"><br>test</textarea>
    <input type="submit">
    </form>
    does not get the error (one of the <br> removed

    Any ideas? The test.php is there, so try it if you like. This change happened recently, worked fine for year before.

    = = = = = = = =
    Researching possible workaround by changing .htaccess file, but get:

    Looks like SecFilterScanPOST Off command may no longer work:


    rver-error/

    = = = = SOLVED = = = = =
    Nothing I did to solve it - AndrewT did some magic and OK now - thanks.
    Last edited by AndrewT; 08-20-2009, 10:49 AM. Reason: removed domain

    Comment

    • ZYV
      Senior Member
      • Sep 2005
      • 315

      #3
      It should have been a mod_security issue...

      Comment

      Working...