Won't fix If beginning of first post has <> tags it breaks meta

dethfire

Well-known member
Affected version
2.1
My staff uses <mod note: blah blah> a lot at the beginning of posts. I've found that if a first post has that it breaks meta description etc.

<meta name="description" content="" />
<meta property="og:description" content="" />
<meta property="twitter:description" content="" />
 
This is intentional. Anything that looks like it could be HTML (the angle brackets <>) is stripped for security reasons.
 
This is intentional. Anything that looks like it could be HTML (the angle brackets <>) is stripped for security reasons.
But why are the tags empty? The notes are only like 30 characters long. Why not start the description content after the brackets?
 
We only strip the brackets and content of the brackets. We don't strip anything else.

Can you create a thread in the Test messages forum with something that is representative of a real post on your forum, and does it have the same issue you're reporting here?
 
Ok, after a closer inspection, there isn't anything we're going to do here right now.

I wasn't too far wrong with the behaviour I mentioned previously, though the difference is that because the snippet opens with what looks like a HTML tag, and it cannot find a corresponding closing tag, the strip_tags function just strips the whole lot, believing it all to be HTML content.

Further, I can't see this being a significant issue. If they are moderator notes, I assume they aren't going to be visible publicly anyway. If it is significant, all I can suggest is using a different format; using square brackets rather than angle brackets works, for example.
 
Back
Top Bottom