File upload multibyte fix (PCRE_UTF8 flag)

This commit is contained in:
Milos Stojanovic
2019-09-05 15:50:25 +02:00
parent e0cc5772a5
commit ec9af3a777
2 changed files with 40 additions and 1 deletions

View File

@@ -131,7 +131,7 @@ class Tmpfs implements Service, TmpfsInterface
[\x00-\x1F]| # control characters http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx
[\x7F\xA0\xAD]| # non-printing characters DEL, NO-BREAK SPACE, SOFT HYPHEN
[;\\\{}^\~`] # other non-safe
~x',
~xu',
'-',
(string) $filename
);