MyBB Community Forums

Full Version: [F] Mysql Backups keys not quoted [C-StefanT]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
http://community.mybboard.net/thread-51697.html

As per that discussion I finally decided to go and make an official bug report. The issue normally stems from a plugin that has a column named the same as a mysql function like "order". So to prevent such errors the keys should be single quoted the same as the values.

Thank you.
Proposed fix. In inc/tasks/backupdb.php and admin/modules/tools/backupdb.php find:

$fields = implode(",", $field_list);

replace with

$fields = "'".implode("','", $field_list)."'";

Ryan
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group