Opened 19 years ago
Closed 19 years ago
#2221 closed defect (bug) (invalid)
Single quotes in user login breaks some MySQL queries
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.0 |
Component: | Administration | Keywords: | single quote user_login MySQL bg|has-patch |
Focuses: | Cc: |
Description
One of my user logins has a single quote in it that causes MySQL errors in the pluggable function get_userdatabylogin(). It may also cause problems in other areas of the code, but I haven't come across them yet.
Adding slashes to sanitize_user() in functions-formatting.php seems to work.
Diff attached.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Diff to add slashes to a sanitised username.