Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Escaped Quotes in Away Reason [R] [C-Chris]
#1
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.
-Doug
1scream Founder
Former MyBB Developer & SQA Member
My Twitter
#2
Better to over escape then under escape, I always say Toungue
#3
(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
#4
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.
#5
I can confirm that works.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
#6
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


Forum Jump:


Users browsing this thread: 1 Guest(s)