mitsuhiko/werkzeug — pull request #561 by bacher09 (2014-08-21 22:05:27+00:00)
Title: Validate filename length in utils.secure_filename

Most filesystems not support filename longer then 255 characters. This code validates and ensures that filename would be less then `length` param.