purplespider / silverstripe-file-listing

Basic Download Page functionality, based on an assets directory
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

Added filter #4

Closed twodayslate closed 11 years ago

twodayslate commented 11 years ago

$field = filter_var($_GET['fid'], FILTER_VALIDATE_INT, FILTER_NULL_ON_FAILURE);

If attempted xss then $field will be null

Let me know if this breaks anything. It should be good.

If you could help me out with listing all the files and subfolders in one list... that would be awesome! Thanks! See issue #2.

purplespider commented 11 years ago

Merged this, but also added a $_GET check to avoid "Notice: Undefined index" on dev.