Fixed vB Importer: Unnecessary htmlentities for User Fields

Kier

XenForo developer
Staff member
I'm sure there's a reason for that... I'm trying to remember if there was a vBulletin option to htmlspecialchars user fields... looking into it now.
 

Mike

XenForo developer
Staff member
It actually appears to just not do the extra decode that's necessary, so fixed now.
 

Mike

XenForo developer
Staff member
Can you provide a dump of your vB database? (Don't need threads and posts, just users.)
 

Mike

XenForo developer
Staff member
The simplest thing would be the whole database as it pulls from different tables, but I could probably manage with just the custom field and user field related data.
 

Mike

XenForo developer
Staff member
Right, me being sort of stupid here - there was a legitimate bug in the custom field import but it was separate from this. We have a few standard fields that get imported from custom fields.

In this case, changing this line of library/XenForo/Importer/vBulletin.php:
Code:
$import['occupation'] = $this->_convertToUtf8($user['field4']);
to:
Code:
$import['occupation'] = $this->_convertToUtf8($user['field4'], true);
Sorts it. This applies to the 3 other instances directly above it as well.

Thanks for the test data. :)
 
Top