2021-12-13, 07:12 PM
Hi, I have a myBB forum running the latest myBB build (just updated today, to be sure).
I am trying to post a code snippet on my forum and the post simply will not go through. If the post is a new reply containing the code snippet, the spinner 'wait' wheel will spin forever after clicking post (ie, it never posts). If I add the code snippet to an edit of an existing post, the edit will not update. I can click the post button after editing, and the edit will appear to complete, but the change will not go through and the post will not contain the new edit.
However, if I edit the mysql entry for the post and add the code snippet, it updates just fine...so it's not like the symbols are a forum-breaking thing.
The snippet isn't some crazy sql-injection syntax either...it's literally anything containing two equals signs in a row ('==').
Is myBB doing some under-the-hood symbol checking/banning that is causing this issue? If so, how do I disable that on my site? The snippet posts fine here, so why not my site?
Example snippet that posts fine on my site:
Example snippet that refuses to post on my site:
I am trying to post a code snippet on my forum and the post simply will not go through. If the post is a new reply containing the code snippet, the spinner 'wait' wheel will spin forever after clicking post (ie, it never posts). If I add the code snippet to an edit of an existing post, the edit will not update. I can click the post button after editing, and the edit will appear to complete, but the change will not go through and the post will not contain the new edit.
However, if I edit the mysql entry for the post and add the code snippet, it updates just fine...so it's not like the symbols are a forum-breaking thing.
The snippet isn't some crazy sql-injection syntax either...it's literally anything containing two equals signs in a row ('==').
Is myBB doing some under-the-hood symbol checking/banning that is causing this issue? If so, how do I disable that on my site? The snippet posts fine here, so why not my site?
Example snippet that posts fine on my site:
if (i = 1)
{
//do work
}
Example snippet that refuses to post on my site:
if (i == 1) //double ='s
{
//do work
}