×
Kunena 5.2.4 and Blue eagle 1.6.4 released (04 Apr 2021)

The Kunena team has announce the arrival of Kunena 5.2.4 [K 5.2.4] which is now available for download as a native Joomla extension for J! 3.9.x. This version addresses most of the issues that were discovered in K 5.2 and issues discovered during the development stages of K 5.2.4

REQUIREMENTS
Blue Eagle 1.6.x requires Kunena 5.2.x to work with, this template isn't designed to works with Bootstrap 3 and Bootstrap 4.

Question attachment->getFilename() returns the "protected name"

More
3 months 2 weeks ago - 3 months 2 weeks ago #1 by robertvdh
I have enabled the option to protect the filenames in the configuration.
Now attachment->getFilename() returns the protected name and no longer the "real name". As a result the downloads all get a cryptic filename.
For now I have changed attachment.php in the libraries/kunena/attachment folder to return the real name.
I am using Kunena 5.2.1 with Blue Eagle 5 version 1.5.3.
Am I the only one that sees this ?

Robert
 
Last edit: 3 months 2 weeks ago by robertvdh.

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

More
3 months 2 weeks ago #2 by xillibit
Hello,

Protected means protects everything, so it's normal that the filename is converted is something with random values...

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.

More
3 months 2 weeks ago #3 by robertvdh
Hello xillibit,
This must have changed recently.
I have always used this option.
The files on the webserver have a protected name. But in messages on the forum the original name was shown, and as a result you could also embed images in the message etc. Now embedding images is no longer possible because the protected names have no extension.
If it is needed then I can disable the "protected" setting. But will that show the original name for files that were uploaded when the protection was enabled ?

Robert

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

More
3 months 2 weeks ago #4 by rich
I've tested it. Embedding is not the problem, it works also without file extension. But now you can see an extract of the protected file name.
 
Attachments:

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

More
3 months 1 week ago #5 by xillibit
Hello,

I have just the change which has broken that, so the fix is here in developpement version of Kunena 5.2.2 : github.com/Kunena/Kunena-Forum/commit/7b...818c6d2d0f4ed119ee3a
 

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.

More
3 months 1 week ago #6 by robertvdh

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.262 seconds