diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-11-28 10:29:21 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-11-28 10:29:21 +0000 |
commit | 7a47bef51436381e4c41a9d291f0eb9b88e63474 (patch) | |
tree | 9e0a0d268f6ab1f49ebe0f5dda8ddb12040fb8f8 /modules/node/node.module | |
parent | 673aba159b039568b93b015c5c8b97a71ec530f6 (diff) | |
download | brdo-7a47bef51436381e4c41a9d291f0eb9b88e63474.tar.gz brdo-7a47bef51436381e4c41a9d291f0eb9b88e63474.tar.bz2 |
- Patch #162381 by Heine et al: properly escape strings.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 4433a1084..0a3696753 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1078,7 +1078,7 @@ function node_search($op = 'search', $keys = NULL) { $form = array(); // Output form for defining rank factor weights. $form['content_ranking'] = array( - '#type' => 'fieldset', + '#type' => 'fieldset', '#title' => t('Content ranking'), ); $form['content_ranking']['#theme'] = 'node_search_admin'; @@ -1099,9 +1099,9 @@ function node_search($op = 'search', $keys = NULL) { $options = drupal_map_assoc(range(0, 10)); foreach ($ranking as $var => $title) { $form['content_ranking']['factors'][$var] = array( - '#title' => $title, - '#type' => 'select', - '#options' => $options, + '#title' => $title, + '#type' => 'select', + '#options' => $options, '#default_value' => variable_get($var, 5), ); } @@ -1199,7 +1199,7 @@ function node_search($op = 'search', $keys = NULL) { $extra = node_invoke_nodeapi($node, 'search result'); $results[] = array('link' => url('node/'. $item->sid, array('absolute' => TRUE)), - 'type' => node_get_types('name', $node), + 'type' => check_plain(node_get_types('name', $node)), 'title' => $node->title, 'user' => theme('username', $node), 'date' => $node->changed, @@ -1699,7 +1699,7 @@ function node_form_alter(&$form, $form_state, $form_id) { } // Node types: - $types = node_get_types('names'); + $types = array_map('check_plain', node_get_types('names')); $form['advanced']['type'] = array( '#type' => 'checkboxes', '#title' => t('Only of the type(s)'), |