PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Bug Tracker (http://www.phpdig.net/forum/forumdisplay.php?f=27)
-   -   Limit search to this path returns no results (http://www.phpdig.net/forum/showthread.php?t=2020)

mixle 05-23-2005 12:23 PM

Limit search to this path returns no results
 
Congrats on this wonderful application. It took quite a bit of work to get it fully configured, and working with external binaries to scan other doc types, but it is a dream once it is working properly.

In testing the search capabilities, I came across this 'bug'. It appears there is a problem with spaces in an address. The function works for most of the links, but paths with spaces in them return 0 results. Considering I am clicking on an actual results, you would think at least it would be returned.

This returns 0 results:

"limit search to this path : www/training/docs/training/Module 21 ver2.0/"

http://www.domain.com/www/search.php...0&option=start

This returns results:

"limit search to this path : docs/implementation/Security/"

http://www.domain.com/www/search.php...0&option=start


Regards,
Mixle

Charter 05-26-2005 09:23 AM

Try the following and let me know if it worked...

In search_function.php find:
Code:

    if (($path) && (strlen($path) > 0)) {
          $wherepath = "AND spider.path like '$my_path' ";
    }

And replace with:
Code:

    if (($path) && (strlen($path) > 0)) {
          $my_path = str_replace(" ","\%20",$my_path);
          $wherepath = "AND spider.path like '$my_path' ";
    }


mixle 05-30-2005 10:24 PM

That seemed to do the trick. :)

Thank you for that.


All times are GMT -8. The time now is 02:16 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.