| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
pacorl
Joined: 01 May 2008 Posts: 2
|
Posted: Thu May 01, 2008 5:47 pm Post subject: Search Bug in 3.0.1 toolkit |
|
|
I'm using phpBB3-SEO-Premod_V_3-0-1.zip , and I've notice an strange error in searches (pagination).
If I search for example "wing tsun kuen", the second page, the third, etc, looks like this:
-http://myforum.com/foros/search.php?st=0&sk=t&sd=d&keywords=wing+tsun+kuen&start=15
But if the search is a word that finish in "A" key, for example "mercedes mila", the first page appears OK, but the pagination is wrong, because look like this:
-http://myforum.com/foros/search.php?st=0&sk=t&sd=d&keywords=mercedes+mil&start=15
This is, the last "A" dissappear, and search is wrong (not coincidences).
If I search "taekwondoka", the "A" dissappear:
-http://myforum.com/foros/search.php?st=0&sk=t&sd=d&keywords=taekwondok&start=15
A solution, please!
ps. If I replace search.php with de phpbb original one, it search works ok. |
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3103
|
Posted: Fri May 02, 2008 1:49 pm Post subject: Re: Search Bug in 3.0.1 toolkit |
|
|
Now this is an interesting bug
I could reproduce it and found the reason.
The guilty line is :
| Code: | | $u_search = trim($u_search, '&'); |
For some obscure reasons, trim() does delete the ending 'a' where we ask it do delete '&'. The fix is simple, replace the above line with :
| Code: | | $u_search = preg_replace('`(^&|&$)`i', '', $u_search); |
http://phpbb3.phpbb-seo.net/search.php?st=0&sk=t&sd=d&keywords=maya
Thanks for reporting, will be added to next update  |
_________________
|
|
| Back to top |
|
 |
pacorl
Joined: 01 May 2008 Posts: 2
|
Posted: Fri May 02, 2008 7:36 pm Post subject: Re: Search Bug in 3.0.1 toolkit |
|
|
Works! , thank you
ps. For people that read this post, the file to modify is search.php  |
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |