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

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

Open
dloser opened this issue May 4, 2016 · 0 comments
Open

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

dloser opened this issue May 4, 2016 · 0 comments

Comments

@dloser
Copy link
Contributor

dloser commented May 4, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant