From 0ec75e5c4d9163658bd9ff50cb3df2bddef4242d Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 18 Mar 2004 18:16:45 +0000 Subject: [PATCH] security fix git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4868 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/search.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpBB/search.php b/phpBB/search.php index fb99d41e2f..0d80b1ec41 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -69,6 +69,7 @@ else $search_id = ( isset($HTTP_GET_VARS['search_id']) ) ? $HTTP_GET_VARS['search_id'] : ''; $show_results = ( isset($HTTP_POST_VARS['show_results']) ) ? $HTTP_POST_VARS['show_results'] : 'posts'; +$show_results = ($show_results == 'topics') ? 'topics' : 'posts'; if ( isset($HTTP_POST_VARS['search_terms']) ) { @@ -144,7 +145,8 @@ if ( $mode == 'searchuser' ) else if ( $search_keywords != '' || $search_author != '' || $search_id ) { $store_vars = array('search_results', 'total_match_count', 'split_search', 'sort_by', 'sort_dir', 'show_results', 'return_chars'); - + $search_results = ''; + // // Search ID Limiter, decrease this value if you experience further timeout problems with searching forums $limiter = 5000;