diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-03-31 09:25:33 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-03-31 09:25:33 +0000 |
commit | be14203534c5f09d0c70c2bf59b81b80f2a90b32 (patch) | |
tree | a489b0bdda01f9de5deba514bcffd3dce16b59ed /modules/search.module | |
parent | 99233a9c991635e801aebc276e4e2975b6ba9e20 (diff) | |
download | brdo-be14203534c5f09d0c70c2bf59b81b80f2a90b32.tar.gz brdo-be14203534c5f09d0c70c2bf59b81b80f2a90b32.tar.bz2 |
- #18817: Clean up plain-text checking (see drupal-devel!)
Diffstat (limited to 'modules/search.module')
-rw-r--r-- | modules/search.module | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/search.module b/modules/search.module index 7b8862239..8fa3f1e5d 100644 --- a/modules/search.module +++ b/modules/search.module @@ -503,7 +503,7 @@ function do_search($keywords, $type, $join = '', $where = '1', $variation = true $message = format_plural(count($refused), 'The word %words was not included because it is too short.', 'The words %words were not included because they were too short.'); - drupal_set_message(strtr($message, array('%words' => '<em>'. drupal_specialchars(implode(', ', $refused)) .'</em>'))); + drupal_set_message(strtr($message, array('%words' => theme('placeholder', implode(', ', $refused))))); } if (count($words) == 0) { @@ -559,7 +559,7 @@ function search_view() { if ($type == '') { $type = 'node'; } - drupal_goto('search/'. $type .'/'. urlencode($_POST['edit']['keys'])); + drupal_goto('search/'. urlencode($type) .'/'. urlencode($_POST['edit']['keys'])); } else if ($type == '') { // Note: search/node can not be a default tab because it would take on the @@ -574,9 +574,9 @@ function search_view() { if (trim($keys)) { // Log the search keys: watchdog('search', - t('Search: %keys (%type).', array('%keys' => "<em>$keys</em>", '%type' => module_invoke($type, 'search', 'name'))), + t('Search: %keys (%type).', array('%keys' => theme('placeholder', $keys), '%type' => module_invoke($type, 'search', 'name'))), WATCHDOG_NOTICE, - l(t('results'), 'search', NULL, 'keys='. urlencode($keys) . '&type='. urlencode($type)) + l(t('results'), 'search/'. urlencode($type) .'/'. urlencode($keys)) ); // Collect the search results: @@ -833,7 +833,7 @@ function theme_search_item($item, $type) { $output = module_invoke($type, 'search_item', $item); } else { - $output = ' <dt class="title"><a href="'. $item['link'] .'">'. $item['title'] .'</a></dt>'; + $output = ' <dt class="title"><a href="'. check_url($item['link']) .'">'. check_plain($item['title']) .'</a></dt>'; $info = array(); if ($item['type']) { $info[] = $item['type']; |