|
From: Paul S. O. <ps...@us...> - 2002-01-27 02:24:08
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv3803
Modified Files:
search.php
Log Message:
Fixed stripslashing problem which would lead to incorrect search results in some cases
Index: search.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/search.php,v
retrieving revision 1.59
retrieving revision 1.60
diff -C2 -r1.59 -r1.60
*** search.php 2002/01/25 02:34:49 1.59
--- search.php 2002/01/27 02:24:05 1.60
***************
*** 232,236 ****
$split_search = array();
! $cleaned_search = clean_words("search", $query_keywords, $synonym_array);
$split_search = split_words($cleaned_search, "search");
--- 232,236 ----
$split_search = array();
! $cleaned_search = clean_words("search", stripslashes($query_keywords), $synonym_array);
$split_search = split_words($cleaned_search, "search");
***************
*** 518,527 ****
}
-
//
// Finish building query (for all combinations)
// and run it ...
//
! if( $total_match_count )
{
//
--- 518,530 ----
}
//
// Finish building query (for all combinations)
// and run it ...
//
! if( !$total_match_count )
! {
! message_die(GENERAL_MESSAGE, $lang['No_search_match']);
! }
! else if( $total_match_count )
{
//
***************
*** 630,637 ****
header("Location: " . append_sid("search.$phpEx", true));
}
- }
- else
- {
- message_die(GENERAL_MESSAGE, $lang['No_search_match']);
}
--- 633,636 ----
|