vBulletin: User field choices keys may get mangled

XFI\Import\Importer\vBulletin::getProfileFieldChoices
PHP:

Код:
$choiceData = $this->decodeValue($field['data'], 'serialized-array');

[...]

foreach ($choiceData AS $key => $choice)
{
    if ($choiceId = $this->convertToId($choice, 23))

$field['data'] may contain data that is not UTF-8, so if this is passed to convertToId the string may get mangled ginving somewhat inconsistent results.

Changing this to
PHP:

if ($choiceId = $this->convertToId($this->convertToUtf8($choice)...

Read more

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ