Opened 15 years ago
Closed 15 years ago
#11781 closed defect (bug) (fixed)
there is potential for odd behavior in two queries in ms-edit.php
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Multisite | Keywords: | has-patch |
Focuses: | Cc: |
Description
there are two queries in the file that manually insert serialized data in the database:
'a:1:{s:" . strlen( $role ) . ":\"" . $role . "\";b:1;}')"
considering #9663 and the fact that the part of php isn't always mb_string safe, we ought to use the serialize() function instead (or better yet, the API).
Attachments (1)
Change History (7)
Note: See
TracTickets for help on using
tickets.
Reviewed, patch OK imho, please commit, this should be handeled properly, the earlier, the better.