That is a bug !! because some people may have [ or ] in their username which will cause some troubles.
If you have read the url i have posted, it currently under discussion on mybb community, and the team is trying to find a fix for that.
Many ideas were presented, however i'm not sure what fix will be chosen.
The problem as you havementioned is in the
], that's so abvious, but now what's important is to find an escape falling in this trap. Umm if you look at the code you see how things go in the quoting process.
code:
"#\[ quote=(?:"|\"|')?(.*?)[\"']?(?:"|\"|')?\](.*?)\[\/quote\ ]#si"
One of the best ways is to add quotation to the user name
[ quote='zaher1988' ]
Many Regards