Skip to content

Commit 9b25aa7

Browse files
author
Alexey Loktionov
committed
fix unicode regexp
1 parent 2d615c1 commit 9b25aa7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Change log
22

3+
## [2.4.4] 2020-11-19
4+
- Исправлен баг с фильтрацией unicode имен файлов
5+
36
## [2.4.3] 2020-11-16
47
- Множественные исправления и очистка deprecated кода для файловых storage types.
58
- Добавлена возможность безопасно загружать файлы as is, без транслитерации имени (это поведение включается с помощью параметра `filter` в атрибуте storagetype).

lib/Common/functions.path.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function path_filter_filename($filename) {
4141
[\x7F\xA0\xAD]| # non-printing characters DEL, NO-BREAK SPACE, SOFT HYPHEN
4242
[#\[\]@!$&\'()+,;=]| # URI reserved https://tools.ietf.org/html/rfc3986#section-2.2
4343
[{}^\~`] # URL unsafe characters https://www.ietf.org/rfc/rfc1738.txt
44-
~x',
44+
~xu',
4545
'-', $filename);
4646
// avoids ".", ".." or ".hiddenFiles"
4747
$filename = ltrim($filename, '.-');

lib/common.version.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
define('PP_VERSION', 'v2.4.3');
3+
define('PP_VERSION', 'v2.4.4');

0 commit comments

Comments
 (0)