referer suppression

Found a bug? Tell us!!
Post Reply
eckes

referer suppression

Post by eckes »

Hello,

it looks like 0.7.1 (possibly others) is doing "refferer suppression" the wrong way. The first seen refferer is sturred in suppression queue and all others are processed and supressionq is updated:

I think this is the code which does whats desired:

...

Code: Select all

        
...
        $count = serendipity_db_query($suppressq, true);

        if ($count[0] > 0) {
            serendipity_db_query($suppressp);
            serendipity_db_query($suppressu);
            return;
        }

        serendipity_db_query($suppressu);

        serendipity_track_url('referrers', $_SERVER['HTTP_REFERER'], $entry);
--
blog.eckes.org
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: referer suppression

Post by garvinhicking »

Thanks for reporting. If possible, please report bugs in our SF.Net bug-tracker. I copied yours there.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply