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

6.x
Dries Buytaert 2007-06-11 07:46:05 +00:00
parent 039d508cd0
commit 6c20c428a1
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,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;
}