MyBB Community Forums
[F] Escaped Quotes in Away Reason [R] [C-Chris] - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: Archived Bug Reports (https://community.mybb.com/forum-74.html)
+------ Forum: MyBB 1.4.4 (https://community.mybb.com/forum-110.html)
+------ Thread: [F] Escaped Quotes in Away Reason [R] [C-Chris] (/thread-44113.html)



[F] Escaped Quotes in Away Reason [R] [C-Chris] - DougSD - 01-26-2009

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.


RE: Escaped Quotes in Away Reason - Ryan Gordon - 01-26-2009

Better to over escape then under escape, I always say Toungue


RE: Escaped Quotes in Away Reason - x_Stricken_x - 01-26-2009

(01-26-2009, 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


RE: Escaped Quotes in Away Reason - Ryan Gordon - 01-26-2009

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.


RE: Escaped Quotes in Away Reason - Matt - 01-26-2009

I can confirm that works.


[F] Escaped Quotes in Away Reason [R] - Ryan Gordon - 01-26-2009

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