Skip to content

Commit

Permalink
Fixes #277 BINARY fields not unesacped in Converter MyBB 1.8 (Merge) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yuliu authored Dec 28, 2021
1 parent a9506ce commit b717360
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions boards/mybb/pollvotes.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function convert_data($data)
// MyBB 1.8 values
$insert_data['uid'] = $this->get_import->uid($data['uid']);
$insert_data['pid'] = $this->get_import->pollid($data['pid']);
$insert_data['ipaddress'] = $this->old_db->unescape_binary($data['ipaddress']);

return $insert_data;
}
Expand Down
1 change: 1 addition & 0 deletions boards/mybb/posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function convert_data($data)
$insert_data['message'] = encode_to_utf8($this->bbcode_parser->convert($data['message']), "posts", "posts");
$insert_data['edituid'] = $this->get_import->uid($data['edituid']);
$insert_data['editreason'] = encode_to_utf8($data['editreason'], "posts", "posts");
$insert_data['ipaddress'] = $this->old_db->unescape_binary($data['ipaddress']);

return $insert_data;
}
Expand Down
1 change: 1 addition & 0 deletions boards/mybb/privatemessages.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function convert_data($data)
$insert_data['toid'] = $this->get_import->uid($data['toid']);
$insert_data['subject'] = encode_to_utf8($data['subject'], "privatemessages", "privatemessages");
$insert_data['message'] = encode_to_utf8($data['message'], "privatemessages", "privatemessages");
$insert_data['ipaddress'] = $this->old_db->unescape_binary($data['ipaddress']);

$touserarray = unserialize($data['recipients']);

Expand Down
2 changes: 2 additions & 0 deletions boards/mybb/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ function convert_data($data)
$insert_data['signature'] = encode_to_utf8($data['signature'], "users", "users");
$insert_data['import_usergroup'] = $data['usergroup'];
$insert_data['import_additionalgroups'] = $data['additionalgroups'];
$insert_data['regip'] = $this->old_db->unescape_binary($data['regip']);
$insert_data['lastip'] = $this->old_db->unescape_binary($data['lastip']);

return $insert_data;
}
Expand Down

0 comments on commit b717360

Please sign in to comment.