}
// trailing dots and whitespace are dropped on storage or by the client OS
- $filename = strtolower(rtrim($filename, " \t\n\r\0\x0B."));
+ $filename = strtolower(rtrim($filename, " \t\n\r\0\v."));
// suffix match so that compound extensions such as 'tar.gz' work too;
// 'gz' still covers 'archive.tar.gz'