X-Git-Url: https://git.p6c8.net/jirafeau/pcanterino.git/blobdiff_plain/b8fdbeedafcd3fc113a2b2c5ef8f2f814b691f4a..321f117a5857929c80bfb463991bfba4a9f3d730:/lib/functions.php diff --git a/lib/functions.php b/lib/functions.php index 2d59cd3..3e9155f 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -242,7 +242,7 @@ function jirafeau_is_extension_allowed($cfg, $filename) } // 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'