Changeset 1224
- Timestamp:
- 11/09/06 11:52:11 (2 years ago)
- Files:
-
- feedmelinks/import/ready-to-import.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
feedmelinks/import/ready-to-import.php
r1205 r1224 19 19 $max_allowed_links = 1000; 20 20 $max_allowed_tags = 300; 21 $max_tags_to_links_ratio = 0. 3;21 $max_tags_to_links_ratio = 0.2; 22 22 23 23 $parser = get_xsl_parser(); … … 42 42 $ls < $max_allowed_links 43 43 && $ts < $max_allowed_tags 44 && $tr < $max_tags_to_links_ratio44 && ($tr < $max_tags_to_links_ratio || $ls < 5) 45 45 ) 46 46 || is_privileged_importer( $u ) ) 47 47 { 48 48 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) 50 50 log_mesg_to( "WARN. user $u importing $ls links and $ts tags with T:L ratio of $tr", "security" ); 51 51