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

5.x
Neil Drumm 2007-06-14 06:06:48 +00:00
parent 2712135fc8
commit 173604b790
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}