]> git.p6c8.net - jirafeau/pcanterino.git/commitdiff
Write vertical tab as \v in jirafeau_is_extension_allowed
authorTehPeGaSuS <25697531+TehPeGaSuS@users.noreply.github.com>
Fri, 23 Oct 2026 18:38:10 +0000 (20:38 +0200)
committerTehPeGaSuS <25697531+TehPeGaSuS@users.noreply.github.com>
Fri, 23 Oct 2026 18:38:10 +0000 (20:38 +0200)
lib/functions.php

index 2d59cd325acb0dd2e756d9ec792fec51b3755fe7..3e9155f16960ae89c89c5db20f4d136be509c6ad 100644 (file)
@@ -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'

patrick-canterino.de