Item8727: incorrent handling of limit parameter

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: AttachmentListPlugin
Branches:
Reported By: AntonioTerceiro
Waiting For:
Last Change By: AntonioTerceiro
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

 
Topic revision: r4 - 19 Mar 2010, AntonioTerceiro
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy