puppetlabs/puppetlabs-apt — pull request #298 by frconil (2014-05-19 05:36:04+00:00)
Title: Fixed regex to follow APT requirements

Previous implementation would overwrite the file name and potentially include characters that would cause apt to ignore the pref file.

What would happen is that $path would use $name by default.
Then the regex would generate a valid $file_name, then ignore completely by using previously set $path, allowing forbidden characters in the file name.