• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed vB Importer: Unnecessary htmlentities for User Fields

Kier

XenForo Developer
Staff member
#2
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
#7
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
#9
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. :)