MyBB Community Forums

Full Version: Reply button with usernames containing quotes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When using the reply button to quote a post, the quote MyCode inserted in the editor is wrong if the quoted user has an apostrophe in their username.

Example: Username: "Fardel's Bear"
Action: Click Reply on a post by the user
Created quote code in the full editor:

[quote=Fardel pid='1' dateline='1421574511']
This is a test post for testing MyAlerts...
[/quote]

I've not looked at the code, but I can confirm this on a fresh install of the current dev version of MyBB 1.8 and a live forum running 1.8.3.
Can confirm this.
Confirmed this too.
I can confirm on latest mybb (github)
Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/1774

Thanks for contributing to MyBB!

Regards,
The MyBB Group
looks like the issue appears for usernames with special characters...

try to reply to this post: http://community.mybb.com/thread-165251-...pid1133361
(2015-01-19, 10:22 AM)mmadhankumar Wrote: [ -> ]looks like the issue appears for usernames with special characters...

try to reply to this post: http://community.mybb.com/thread-165251-...pid1133361

Yup. The PHP code seems fine, but SCEditor seems to do something strange to the characters. That's what I found whilst testing apostrophes last night anyway. A quick (kind of working, but not quite) solution was to escape apostrophes, but the username then gets corrupted when the post is saved...