Don't create a user account every time a username with an apostrophe …
…successfuly authenticates using LDAP
* decode HTML entities in username
* escape slashes when quering for existing users
Please also see the bug raised in Sugar QA database: http://www.sugarcrm.com/support/bugs.html#issue_62290
Would a call to $db->quote($name) be better here than a straight addslashes() call?
Yeah, we tried that, but for some reason it didn't work!
Thanks for submitting your fix. Looks good and we'd like to use it. I see you have the bug filed already and linked back to this PR which is great! Have you had a chance to review and sign our contribution agreement ( http://www.sugarforge.org/content/community/participate/agreement.html )?
If you could print, sign, scan and email back to me at email@example.com then we can pull in your fix.