Skip to content

Commit

Permalink
Make maximum 'literal' page configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
dgw committed Sep 19, 2019
1 parent 50a9f13 commit 4706bf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bucket.pl
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ sub DEBUG {
inventory_preload => [ i => 0 ],
inventory_size => [ i => 20 ],
item_drop_rate => [ i => 3 ],
literal_page_max => [ i => 10],
lookup_tla => [ i => 10 ],
max_sub_length => [ i => 80 ],
minimum_length => [ i => 6 ],
Expand Down Expand Up @@ -2237,7 +2238,7 @@ sub db_success {
return;
}

if ( $bag{page} ne "*" and $bag{page} > 10 ) {
if ( $bag{page} ne "*" and $bag{page} > &config("literal_page_max") ) {
$bag{page} = "*";
}

Expand Down

0 comments on commit 4706bf6

Please sign in to comment.