Results 1 to 2 of 2

Thread: Javascript in article, HTML element resaults in Error 403

  1. #1
    New user
    Join Date
    09-08-17.
    Posts
    1

    Default Javascript in article, HTML element resaults in Error 403

    Hi. This is my first post, so hello to everyone .

    I have small problem with my Contao. I have article, element type: HTML. Inside I have some HTML code and part like this:

    HTML Code:
    <a class="ce_backlink links" title="Zurück zur vorherigen Seite" href="j a v ascript:history.go(-1)">Zurück</a>
    *On this forum javascript:... is blocked, that's why i have "javascript" with spaces in HTML part.

    When I try to save this code - I get Error 403, and data is not saved in database. It looks like on some level (php, mysql, server configuration) there is part searching for javascript and if it find it - it blocks site. Yes, I know that I can use {{link::back}}, but I'm making translation of existing site, so trying to leave as much of oryginal structure as possible.

    I can add that my files are stored on hosting firm servers, so I can't mess too much in backend.

    Questions are: Have you ever seen this problem before, what is wrong and can I fix it in Contao?

  2. #2
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    This is probably a security feature of your hoster, preventing any JavaScript to be sent to the server via POST Requests.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •