Skip to main content.
home | support | download

Back to List Archive

RE: Getting the right files indexed the right way

From: Rob de Santos AFANA <rdesantos(at)not-real.afana.com>
Date: Wed Jan 28 2004 - 08:14:16 GMT
Thanks, Bill.  Let me see if I understand what you are suggesting...
replace this:

    return 1 if !$content_type || (($content_type =~ m!^text/!) ||
($uri_ext =~ /\.(gif|jpg|jpeg|png)?$/));

with something like this:

    return 1 if !$content_type || ($content_type =~ m!^text/!); 
    if $uri_ext =~ /\.(gif|jpg|jpeg|png)?$/ {
         $$content_ref = $uri;
         return 1;       
    }

-Rob 
AFANA
Received on Wed Jan 28 00:14:16 2004