Item8727: incorrent handling of limit
parameter
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
my server logs are full of warning like this:
[warn] mod_fcgid: stderr: splice() offset past end of array at /var/lib/foswiki/lib/Foswiki/Plugins/AttachmentListPlugin.pm line 131.
This happens because the
limit
param is not handled correctly. That call to
splice()
should be done only if
limit
is smaller than the number of files. It should also validate whether
limit
is a valid number before feeding it into
splice()
.
--
AntonioTerceiro - 19 Mar 2010