At 12:46 17/08/01 -0400, Geoff Hutchison wrote:
>On Fri, 17 Aug 2001, Marcus Valentine wrote:
>
>> As for (1) - is there a way of testing it?  I've run rundig -vvv to see
>> if there is any evidence of the rewriting taking place but I don't know
>> whether I should expect to see it at work here anyway.
>
>You should see it there. I'd make sure that the binaries you're running
>have been modified recently--obviously if you asked for the patch to be
>installed on date X and ls -l shows that they were last modified before
>date X, then anything you do in your config file won't help...

I've skinned this cat a different way. As I'm using the php wrapper from

        http://langille.org/htdig-php-wrapper.tgz 

In search.php, I modified

       for ($i = $ResultSetStart; $i < $rc; $i++) {
        echo $result[$i];
        }

to

       for ($i = $ResultSetStart; $i < $rc; $i++) {
        # strip php session ids from returned URLs (well everything actually)
        $result[$i] = ereg_replace( "\?PHPSESSID=[0-9a-f]*", '', $result[$i]);
        echo $result[$i];
        }

So I'm stripping off the session ids from the URLs returned by htsearch.

Marcus Valentine


_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to