kanduvisla/force_download — pull request #1 by vlad-ghita (2012-05-23 06:28:40+00:00)
Title: Fixed wild card matching.

The haystack and needle needed to be reversed.

The haystack should be the path to downloaded file :

workspace/public/uploads/images/image === $info['dirname']

And the needle should be the allowed wild card dir:

workspace/public/uploads/images === $match

In preferences it's set:

workspace/public/uploads/images/*