- Posts: 28
- Thank you received: 2
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.
Question Atachments with nonlatin filenames
15 years 8 months ago #58052
by pawa
Atachments with nonlatin filenames was created by pawa
We have problem with atachments, thats has non-latin characters in filename.
CKunenaFile::makeSafe() delete all non-latin characters.It is incorrect, filenames can include cyrylic chars e.g.
Example:
CKunenaFile::makeSafe() delete all non-latin characters.It is incorrect, filenames can include cyrylic chars e.g.
Example:
Please Log in or Create an account to join the conversation.
15 years 8 months ago #58083
by etusha
Replied by etusha on topic Re: Atachments with nonlatin filenames
this is known bug
Please Log in or Create an account to join the conversation.
15 years 8 months ago #58132
by pawa
Replied by pawa on topic Re: Atachments with nonlatin filenames
it's good, but it's bad
Please Log in or Create an account to join the conversation.
15 years 8 months ago #58150
by Cerberus
Replied by Cerberus on topic Re: Atachments with nonlatin filenames
as fxstien replied in your other thread about this these type of text will never be supported as allowing them would cause a security hole.
Please Log in or Create an account to join the conversation.
15 years 8 months ago #58211
by pawa
Replied by pawa on topic Re: Atachments with nonlatin filenames
My solution for this bug is to edit libraries/joomla/filesystem/file.php
(line 60)
It works. You can test it at
nvrsk.org/forum/Песочница/5917
(rus).
I know, that it's bad idea to edit Joomla core files, but bug is here.
It's very importent for me and my users.
(line 60)
Code:
function makeSafe($file) {
- $regex = array('#(\.){2,}#', '#[^A-Za-z0-9\.\_\- ]#', '#^\.#');
- return preg_replace($regex, '', $file);
+ $res = preg_replace('#(\.){2,}#','.', $file);
+ $res = preg_replace('#^\.#','', $res);
+ $res = preg_replace('#[^A-Za-z0-9\.\_\- ]#','-', $res);
+ return $res;
}
I know, that it's bad idea to edit Joomla core files, but bug is here.
It's very importent for me and my users.
The following user(s) said Thank You: ChaosHead
Please Log in or Create an account to join the conversation.
15 years 8 months ago #58400
by Matias
Replied by Matias on topic Re: Atachments with nonlatin filenames
We cannot change Joomla but you can report your bug with a patch into Joomla bug tracker. If the patch is good, they will probably include the fix into the next release.
Please Log in or Create an account to join the conversation.
Time to create page: 0.248 seconds