import-wodpress-1x
Opened 15 years ago
#1281 new defect
Author mapping not sanitized
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Severity: | normal |
| Plugin: | import-wodpress-1x | Keywords: | wordpress_importer |
| Cc: |
Description
We do not sanitize the $old_login when setting it as a key to $this->author_mapping in get_author_mapping().
When we goto reference it in process_posts() we do this:
// map the post author $author = sanitize_user( $post['post_author'], true ); if ( isset( $this->author_mapping[$author] ) ) $author = $this->author_mapping[$author]; else $author = (int) get_current_user_id();
The sanitize_user call will remove multiple characters (including white spaces) and replace uppercase w/ lowercase causing the key to not be found.
Note: See
TracTickets for help on using
tickets.