Opened 17 years ago
Closed 16 years ago
#11781 closed defect (bug) (fixed)
there is potential for odd behavior in two queries in ms-edit.php
| Reported by: | Denis-de-Bernardy | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Multisite | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Reviewed, patch OK imho, please commit, this should be handeled properly, the earlier, the better.