Quick file link

Phoca Download - download manager
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Quick file link

Post by Jan »

Hi, yes, seems like the behaviour changed in newest Joomla!

Please open the file:
components\com_phocadownload\views\download\view.html.php

on line 116 change
FROM:

Code: Select all

if (!JSession::checkToken()) {
TO:

Code: Select all

if (!JSession::checkToken('request')) {
and let me know if this work (it does not solve the additional slashes, I need to first test and find in which cases this could happen - for me it works OK, so I need to do more tests).

Jan
If you find Phoca extensions useful, please support the project

Tags:
fmeneuhe
Phoca Member
Phoca Member
Posts: 14
Joined: 28 Jan 2019, 20:40

Re: Quick file link

Post by fmeneuhe »

Hi,
The double slash is still in, but now it works, the invalid token is not shown any more.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Quick file link

Post by Jan »

Ok, thank you for the info, I will try to find the problem with double slash and will try to change the code for next version.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Quick file link

Post by Jan »

Hi, should be OK in version 3.1.8
https://www.phoca.cz/news/1028-phoca-do ... 8-released
Jan
If you find Phoca extensions useful, please support the project
fmeneuhe
Phoca Member
Phoca Member
Posts: 14
Joined: 28 Jan 2019, 20:40

Re: Quick file link

Post by fmeneuhe »

Thanks
Post Reply