Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

Inputs not stripped #34

Description

@dave-smyth

Describe the bug
If a user enters something unsavoury, like <script>, or even:

<script>
alert("Breaking your site");
</script>

It seems to break things. That specific example, on a {{ title }} text input field redirected me to /!/Workshop/entryUpdate with a 403 error.

Using strip_tags isn’t beneficial as this is happening on an input rather than output.

Expected behavior
Expect input to be stripped of HTML tags.

Environment details:

  • Workshop Version: 1.1.3
  • Statamic Version: 2.11.20
  • Fresh Install or Upgrade: No
  • OS: macOS 10.15.4
  • Browser: Any
  • Web Server: Apache
  • PHP Version: 7.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions