New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reply button with usernames containing quotes #1774
Comments
Fix:
$quoted_post['username'] = addslashes($quoted_post['username']); |
This should be fixed in MyBB 1.8.4 - because this bugs affects some plugins |
Which plugins? |
@Sama34 - for example all plugins for quick (fast) quotes |
It doesn't matter that it affects plugins too.. The biggest problem which might move this issue to 1.8.4 is that it affects the core itself. The fix above (if it's valid, it looks like it is) could be made into PR to ensure that. |
@Destroy666x the above fix is not complete. Unfortunately when the quote is saved, some other processing seems to happen. I haven't had a chance to look at what else is going wrong yet. |
If this is a SCEditor issue we can probably ask the developers. |
@euantorano Have you ever looked into this? |
I had a brief look and couldn't work out where it was going wrong. I'll have a look this weekend. |
The problem is that in |
This is a simple fix. Can anyone test #2624 ? |
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:
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.
Original thread: Reply button with usernames containing quotes
The text was updated successfully, but these errors were encountered: