Skip to content

Commit

Permalink
fix unicode regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Loktionov committed Nov 19, 2020
1 parent 2d615c1 commit 9b25aa7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change log

## [2.4.4] 2020-11-19
- Исправлен баг с фильтрацией unicode имен файлов

## [2.4.3] 2020-11-16
- Множественные исправления и очистка deprecated кода для файловых storage types.
- Добавлена возможность безопасно загружать файлы as is, без транслитерации имени (это поведение включается с помощью параметра `filter` в атрибуте storagetype).
Expand Down
2 changes: 1 addition & 1 deletion lib/Common/functions.path.inc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function path_filter_filename($filename) {
[\x7F\xA0\xAD]| # non-printing characters DEL, NO-BREAK SPACE, SOFT HYPHEN
[#\[\]@!$&\'()+,;=]| # URI reserved https://tools.ietf.org/html/rfc3986#section-2.2
[{}^\~`] # URL unsafe characters https://www.ietf.org/rfc/rfc1738.txt
~x',
~xu',
'-', $filename);
// avoids ".", ".." or ".hiddenFiles"
$filename = ltrim($filename, '.-');
Expand Down
2 changes: 1 addition & 1 deletion lib/common.version.inc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

define('PP_VERSION', 'v2.4.3');
define('PP_VERSION', 'v2.4.4');

0 comments on commit 9b25aa7

Please sign in to comment.