Commit 173604b7 authored by drumm's avatar drumm

- Patch #145646 by lyricnz: select fields more strictly.

parent 2712135f
......@@ -131,7 +131,7 @@ function block_block($op = 'list', $delta = 0, $edit = array()) {
break;
case 'view':
$block = db_fetch_object(db_query('SELECT * FROM {boxes} WHERE bid = %d', $delta));
$block = db_fetch_object(db_query('SELECT body, format FROM {boxes} WHERE bid = %d', $delta));
$data['content'] = check_markup($block->body, $block->format, FALSE);
return $data;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment