Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folders #20

Open
hectorbarranca opened this issue Jul 1, 2018 · 0 comments
Open

Folders #20

hectorbarranca opened this issue Jul 1, 2018 · 0 comments

Comments

@hectorbarranca
Copy link

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 =).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@hectorbarranca and others