MyBB Community Forums

Full Version: [F] Escaped Quotes in Away Reason [R] [C-Chris]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
If you insert single or double quotes in away reason, the escape (\) is added (you can see it publicly). I can reproduce it here and on my localhost.
Better to over escape then under escape, I always say Toungue
(2009-01-26, 06:10 AM)Ryan Gordon Wrote: [ -> ]Better to over escape then under escape, I always say Toungue
Especially in the case of MySQL..Big Grin
Try this. In usercp.php find:

"awayreason" => $db->escape_string($mybb->input['awayreason'])

replace with

"awayreason" => $mybb->input['awayreason']

Because it's already escaped in the datahandler.
I can confirm that works.
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group