commit | 0cce5355b45d835f95a8918b8b803fd977d374e4 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Wed Nov 26 13:38:26 2014 -0800 |
committer | Jeff Sharkey <jsharkey@android.com> | Mon Dec 01 09:38:49 2014 -0800 |
tree | d42b69e266761ba6caed601f5d710df9d9739bb5 | |
parent | 48e17629b0b6c89cb77342c0364a1cf3a0b2a0fb [diff] |
Sanitize display names, keep extensions intact. When creating or renaming files on external storage, sanitize the requested display names to be valid FAT filenames. This also fixes a handful of directory traversal bugs. Also relax logic around generating display names to allow any extension which maps to the requested MIME type. Tests to verify. Bug: 18512473, 18504132 Change-Id: I89e632019ee145f53d9d9d2050932f8939a756af