Opened 21 years ago
Closed 21 years ago
#2221 closed defect (bug) (invalid)
Single quotes in user login breaks some MySQL queries
| Reported by: | majelbstoat | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 2.0 |
| Severity: | normal | Keywords: | single quote user_login MySQL bg|has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Diff to add slashes to a sanitised username.