Topic: search bug and how to correction.
punbb version : 1.44 - 1.3
post message is : 123abc
serarch : 123
result: can't find the post ,search did't work.
serarch : abc
result: can't find the post ,search did't work.
serarch : 123abc
result: can find the post ,search work coreectly.
-----------------------------------------------------------------------------------
reason:
search sql statement ,like lack % .
-----------------------------------------------------------------------------------
correction:
file name: punbase/include/search_functions.php
position: 105
replace : 'WHERE' => 'w.word LIKE \''.$forum_db->escape(str_replace('*', '%', $cur_word)).'\''
with : 'WHERE' => 'w.word LIKE \'%'.$forum_db->escape(str_replace('*', '', $cur_word)).'%\''
can you read it ? my english is poor.
By the way , this account is't mine .
I have mail like xxx@163.com , xxx@mail2world.com ,but I can't rgister a forum account .
How difficult to register it is !
if this is your account ,please email to 191682430@163.com .