Skip to content

Folders #20

@hectorbarranca

Description

@hectorbarranca

Hi my friend.

I check a possible issue, if you enter an URL that is into a folder it has something like this:
https://mega.nz/#F!8ll3lb6R!ErrnqjmvDc1I9CsrJIkExQ!xt9WiT5S

In the function mega_get_folder_info the preg_match separe the string by:
$id = 8ll3lb6R
$key = ErrnqjmvDc1I9CsrJIkExQ!xt9WiT5S

And the correct key is ErrnqjmvDc1I9CsrJIkExQ whitout the last part that represent the folder.

At the moment (not the best solution) y remove the !xt9WiT5S with:
preg_match('/!(.?)!(.)/', $hash, $matches);
$id = $matches[1];
$key = $matches[2];
$pos = strpos($key,'!');
if($pos) $key = substr($key,0,$pos);

But maybe can be another solution because if the upper folder has more files them it going to give all.

See you =).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions