Helix Ultimate 2.2.9 Bug Invalid Path In Windows OS - Question | JoomShaper

Helix Ultimate 2.2.9 Bug Invalid Path In Windows OS

A

Alvaro

Helix Framework 1 week ago

If you have a Windows operating system and want to select an image in Helix, and you need to access a folder to do so, you'll see the following message: "The most recent request was denied because it had an invalid security token. Please refresh the page and try again." While the problem appears to be the security token, our investigation revealed the issue to be "Invalid media path." This led us to helper.php, specifically to the resolveMediaPath method on line 957, which contains:

if ($fullPath === $allowedPath || strpos($fullPath, $allowedPath . '/') === 0) {

To fix this bug, it should be changed to:

if ($fullPath === $allowedPath || strpos($fullPath, $allowedPath . DIRECTORY_SEPARATOR) === 0) {

Or, you can implement the same fix found in Media.php using str_replace.

I hope this solution is included in a new version as soon as possible; we Windows lovers are suffering from it. Regards

0
2 Answers
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 1 week ago #232266

Hello Alvaro,

We sincerely apologize for the inconvenience. Thank you for providing such detailed information about the issue and the potential fix.

I have forwarded the issue and your findings to our development team for further investigation. We will work to have this fixed in an upcoming update.

We greatly appreciate your patience and understanding while we work on resolving this issue.

0
A
Alvaro
Accepted Answer
2 days ago #232670

This issue isn't fixed in version 2.2.10. I told them the file (helper.php) and the method (resolveMediaPath), even the line to modify and how to fix it, although you might have had better solutions, but the goal was to find a solution.

I had told the clients that I had already reported the bug and provided a temporary fix by patching their files, and now they're reporting that it no longer works after updating.

Those who work on Windows, please fix this.

0