Plugin Directory

import-wodpress-1x

Opened 15 years ago

#1281 new defect

Author mapping not sanitized

Reported by: lonnylot's profile lonnylot's profile lonnylot Owned by: duck_'s profile duck_'s profile duck_
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.

Change History (0)

Note: See TracTickets for help on using tickets.