Wildcard search not working in 1.4.8 Wildcard search not working in 1.4.8
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Wildcard search not working in 1.4.8

Started by adrianbj, July 20, 2006, 07:05:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

adrianbj

I can't seem to make the wildcard search work in 1.4.8

I know it used to work when I first installed CPG back in the 1.3x era, but I am not sure when it stopped working. I know that Nibbler fixed this issue in svn revision 3036, but 1.4.8 is up to svn revision 3116, so it should be working. In fact I notice it is working on your demo board, so I am a little baffled as to what is going on - is the demo board running the stock 1.4.8 installation?

The line that seems to be most relevant to me is:

$search_string = strtr($search_string, array('_' => '\_', '%' => '\%', '*' => '%'));

from the search.inc.php file. It certainly seems like it should do the job of converting the * to %.

My gallery is available at http://ian.umces.edu/imagelibrary/

Please let me know if there is anything else I can post to help debug this.

Thanks,
Adrian

Nibbler

Enable debug output so we can see the query when you use a wildcard. If you don't want to do that then enable it for yourself and post us the results.

Sami

You are using MOD for search try disable that mod and test orginal search , standard installation of cpg 1.4.8 is okey with wildcard search
‍I don't answer to PM with support question
Please post your issue to related board

adrianbj

This is what I get

USER:
------------------
Array
(
    [ID] => ce9c83f834445bc81b2f59d530cc194b
    [am] => 1
    [liv] => Array
        (
           
  • => 551
                [1] => 548
                [2] => 249

Nibbler

Switch your gallery to UTF-8 encoding.

adrianbj

bmossavari,

I added a simple search field to the top of my gallery, but the main search page (search.php) is the standard 1.4.8 code. Is there something I am missing that you are referring to?

adrianbj

Nibbler,

It was the encoding issue - thanks for that!

Adrian