Kunena 7.0.11 & Kunena 6.4.16 – Security Updates Released and K7.1 in RC1 2

The Kunena team has announce the arrival of three simultaneous security release : K6.4.16, K7.0.11 and K7.1 RC2. Just a reminder K6.4.16 receives only securities fixes untill end of 2026, so it's advised for users to upgrade to K7.0.11. K7.0.11 is the last release of the K7.0 because it's replaced by K7.1 branch with the stable release in the corner. The translations for K7.1 on crowdin.com/project/kunena-forum-7-1 needs to be checked or improved becasue it has been generated by TM (Translation Machine).

Solved [K4.0.3] File attachment problem when use Ñ

More
11 years 3 months ago - 11 years 3 months ago #166753 by xillibit
In the file \libraries\kunena\attachment\helper.php change like that 438 :
Code:
public static function shortenFilename($filename, $front = 10, $back = 8, $filler = '...') { $len = mb_strlen($filename); if ($len>($front+strlen($filler)+$back)) { $output=substr($filename,0,$front).$filler.substr($filename,$len-$back,$back); } else { $output=$filename; } return $output; }

I don't provide support by PM, because this can be useful for someone else.
Last edit: 11 years 3 months ago by xillibit.
The following user(s) said Thank You: ssh, zincos

Please Log in or Create an account to join the conversation.

More
11 years 3 months ago - 11 years 3 months ago #166805 by ssh
You mean line 440
Code:
$len = mb_strlen($filename);

Yeah!
It works great, thanks xillibit, and thanks everyone for pay attention into this.
Last edit: 11 years 3 months ago by ssh.

Please Log in or Create an account to join the conversation.

More
11 years 3 months ago #166849 by sozzled
@xillibit: Will this modification be applied to the next release of K 4.0?

Please Log in or Create an account to join the conversation.

More
11 years 3 months ago #166887 by xillibit
Yes i will do a fix for k4.0.4

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

Time to create page: 0.153 seconds