admin/database.php?returntab=1 (SQL Command in CP)
- Type a query that contains line breaks into the Query box.
- Save the query.
- Click the 'Execute' link next to the saved query.
- Enjoy a SQL error.
Fix:
In templates/default/admin/database.tmpl find:
function exeCommand (i) {
document.sql.command.value = commandArray[i];
document.sql.submit();
}and replace it with:
function exeCommand (i) {
document.sql.command.value = commandArray[i].replace(/JSLBR/g,'\n');
document.sql.submit();
}