CMS MADE SIMPLE FORGE

Uploads

 

[#11383] Removes national characters

avatar
Created By: Petr N. (esmiran)
Date Submitted: Thu May 18 09:33:54 -0400 2017

Assigned To:
Version: None
CMSMS Version: 2.2-beta3
Severity: None
Resolution: Fixed
State: Open
Summary:
Removes national characters
Detailed Description:
The upload module deletes all national alphabet characters from the file name
without replacing them. The file name is then not readable correctly.
For example, from  the file "černá-kočka.pdf"  is then "ern-koka.pdf"

Does this module not use UTF8?


History

Comments
avatar
Date: 2017-06-24 17:43
Posted By: Robert Campbell (calguy1000)

Fixed an error in very longstanding regular expression  to clean up invalid
uploaded filenames.
      
avatar
Date: 2017-06-27 10:29
Posted By: Petr N. (esmiran)

Has not been fixed.
The new version is the same bug as I reported above.
Check out the file "function.common_tools.php", lines 290 and 314. There is too
much regex set here.
Something like "mb_ereg_replace("([^\w\s\d\-_~,;\[\]\(\).])", '',
$file['name'])" works fine.
      
avatar
Date: 2017-06-27 10:31
Posted By: Petr N. (esmiran)

Not fixed in version 1.25.7
      
avatar
Date: 2017-07-04 07:24
Posted By: Petr N. (esmiran)

In version 1.25.8 now works well, thanks.
      
avatar
Date: 2017-07-04 07:25
Posted By: Petr N. (esmiran)

Fixed in version 1.25.8
      
Updates

Updated: 2017-07-04 07:25
resolution_id: 10 => 7

Updated: 2017-06-27 10:31
resolution_id: 7 => 10

Updated: 2017-06-24 17:43
resolution_id: => 7