ckan/ckan — pull request #2041 by brew (2014-11-10 12:44:14+00:00)
Title: munge_filename isn't idempotent for filenames containing spaces

Applying `lib.munge.munge_filename` multiple times to its own output doesn't always produce the same result for filenames that originally have spaces.

In the first pass spaces are replaced with hyphens. In subsequent passes, hyphens are removed.