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

Fix adding torrent function #2118

Merged
merged 1 commit into from
Nov 12, 2020
Merged

Fix adding torrent function #2118

merged 1 commit into from
Nov 12, 2020

Conversation

Micdu70
Copy link
Contributor

@Micdu70 Micdu70 commented Nov 11, 2020

Is there a valid reason to comment $client->referer = $rt->referer; in plugins/loginmgr/accounts.php (line 24)?
Because it's the easiest way to fix this => #2092 (comment)

@Novik
Copy link
Owner

Novik commented Nov 12, 2020

Yes. Some search engines require concrete referer for processing. For example, for ZamundaNet this referer must include parameters of current search. But if we load referer from cache then authorization request will not contain this referer.

See this commit for details
cfad7fc

@Micdu70
Copy link
Contributor Author

Micdu70 commented Nov 12, 2020

Done! Thanks for your help @Novik 👍

$data = privateData::load( $this->getName() );
if($this->login($client,$login,$password,$url,$method,$content_type,$body,$is_result_fetched) &&
$client->status>=200 &&
$data = $this->loadData($client);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO must be

Suggested change
$data = $this->loadData($client);
$data = $this->loadData();

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK ;)

@Novik Novik merged commit 5c92e55 into Novik:master Nov 12, 2020
@Micdu70 Micdu70 deleted the patch-11 branch November 12, 2020 20:12
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

Successfully merging this pull request may close these issues.

2 participants