Skip to content
This repository was archived by the owner on Oct 30, 2019. It is now read-only.
This repository was archived by the owner on Oct 30, 2019. It is now read-only.

Post body can break out of containing div element. #191

@dloser

Description

@dloser

Since commit 2aa3799, one can generate an arbitrary amount of elements in a post.

Example code: [code][left]...[left][/code][/left]...[/left]oops

Example output (edited): <div class="bbcode_code"><pre><div>...<div></pre></div></div>...</div>oops

Here the </pre> effectively closes the inner <div> elements, leaving the outer </div> elements unmatched.

Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.

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