filamentgroup/quickconcat — pull request #8 by jeffsebring (2012-09-11 05:27:29+00:00)
Title: Make sure we guess the file type with an index still set

Ensures we guess the file type with an index that still exists after the sanitize file-parameters loop.

This little for loop:
* starts at the first index
* ends once it finds one still set
* exits if none exist, preventing an infinite loop.

The first set $idx is then used for file type guessing.