https://sourceforge.net/apps/trac/sourceforge/ticket/25540
I was replied to on this board
https://sourceforge.net/p/openrokn/discussion/general/thread/9dd0371c/
and its very important but its giving me a 500 error
Also: perhaps we should consider ways for this to fail more gracefully? Like just showing the raw text for this if it errors in processing? So that folks can still get at the content instead of just being locked out?
Error is:
Not sure if it'll help, but we should upgrade our
Markdown
packageOriginally by: kavulix
To reproduce this bug try creating a new topic with the following text (3 spaces before the orml tag, 6 spaces before the channel tag). If there are only 3 spaces preceding the orml tag then the preview button won't work. Clicking preview has no effect at all. If you then click the post button it will result in the http 500 error. Adding a fourth space prior to the orml tag or converting the < character to a html entity will then allow you to use the preview button.
Instead of requiring the user/poster to encode the html entities for unknown html tags, wouldn't it be safer to just compare each tag name to a list of accepted tag names? If a tag name doesn't match any known/accepted html tags then it should automatically be encoded to prevent errors. Something like the following.
Last edit: Anonymous 2015-06-12
This is the same error as [#3735]. I just added some error handling around that which will prevent the page from breaking if things get sent to markdown that it can't handle. I'll check back on this after it's pushed to make sure.
kavulix, you can ensure code snippets display as expected by wrapping them in ~~~~ There's more info on this under "Code Highlighting" in the Formatting Help.
Related
Tickets:
#3735