Fixed a problem with <$fh> in a list context - it was only returning one line, not a list of all the lines. ($fh is the thing returned by $r->filter_input). Spotted by Philippe Chiasson.
Fixed a problem that threw off the counting of filters when $r->filename could not be opened.
I now return DECLINED whenever $r->filename is a directory. See the note in BUGS. Spotted by Philippe Chiasson.