Changeset 1224

Show
Ignore:
Timestamp:
11/09/06 11:52:11 (2 years ago)
Author:
jm3
Message:

loosened restriction slightly on imported files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • feedmelinks/import/ready-to-import.php

    r1205 r1224  
    1919                $max_allowed_links = 1000; 
    2020    $max_allowed_tags  = 300; 
    21     $max_tags_to_links_ratio = 0.3
     21    $max_tags_to_links_ratio = 0.2
    2222 
    2323                $parser = get_xsl_parser(); 
     
    4242                                                $ls < $max_allowed_links  
    4343                                                && $ts < $max_allowed_tags 
    44                                                 && $tr < $max_tags_to_links_ratio 
     44                                                && ($tr < $max_tags_to_links_ratio || $ls < 5) 
    4545                                        ) 
    4646                                        || is_privileged_importer( $u ) )  
    4747                        { 
    4848                                fire( "FML Debug: import request - $ls, $ts, $tr", "user $u importing $ls links and $ts tags with T:L ratio of $tr" ); 
    49                                 if( $tr > .1
     49                                if( $tr > $max_tags_to_links_ratio && $ls > 5
    5050                                        log_mesg_to( "WARN. user $u importing $ls links and $ts tags with T:L ratio of $tr", "security" ); 
    5151