News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

A bug (maybe) with search....

Started by the DtTvB, March 28, 2007, 10:40:25 AM

Previous topic - Next topic

the DtTvB

I think found some... bug, but I am not sure is that already discovered or not.

If you search for "a e i o u", it will get some results like this:
QuoteWighlight">elcomighlight">e to SMF! by Simple Machines
in the title.

the DtTvB

KGIII

Where are you seeing this? With what version?

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

Harro

Try it here on this forum and look at the titles of the search results.

KGIII

Neat. I looked at the page titles not the topic titles. I'll check and see if it is bugged or not and, if not, I will add it to the list.

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

Daniel15

It happens if you search for "e i" as well, and I think I can see what's happening...
The topic "Stats for user groups" is one of the search results returned upon searching for "e i". Now, since we're searching for "e", it highlights the letter "e":
Stats for us<b class="highlight">e</b>r groups

OK, that's fine. However, we're also searching for "i". SMF is searching the code so far for "i", and it matches the two i's in "highlight". We end up with something like this:
Stats for us<b class="h<b class="highlight">i</b>ghl<b class="highlight">i</b>ght">e</b>r groups

This causes incorrect HTML output, which corrupts its display. Indeed, searching for any portion of "highlight" will show this problem (searches for "light" will also show the same problems, for instance).

As KGIII mentioned, this has been added to our internal bug tracker, and should (hopefully) be fixed in a future release ;)
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Advertisement: