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

[PixivBridge] Rewrite Bridge #2111

Merged
merged 2 commits into from
May 24, 2021
Merged

[PixivBridge] Rewrite Bridge #2111

merged 2 commits into from
May 24, 2021

Conversation

yamanq
Copy link
Contributor

@yamanq yamanq commented May 10, 2021

Rewrite the bridge to use the new site format and added some options:

  • Search for Illustrations, Manga or Novels
  • Custom Post Limit
  • Choose between thumbnails and full-sized image

Closes #1807
Closes #1258

Copy link
Contributor

@em92 em92 left a comment

Choose a reason for hiding this comment

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


public function collectData() {
$content = getContents($this->getSearchURI())
or returnClientError('Unable to query pixiv.net');
Copy link
Contributor

Choose a reason for hiding this comment

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

getContents raises exception on non 200 http result. No need to use returnClientError.

}
file_put_contents($path . '/' . $illustId . '.jpeg', $illust);
file_put_contents($path . '/' . $illustId . '.jpg', $illust);
Copy link
Contributor

Choose a reason for hiding this comment

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

if $illustId's value is ../../../../etc/rc.local it could be possible to write outside rss-bridge directory.
You need to escape this situation.

@yamanq
Copy link
Contributor Author

yamanq commented May 19, 2021

Thanks for the review @em92. I believe all 3 issues are fixed now. I can squash the commits after they are approved.

@yamanq yamanq requested a review from em92 May 23, 2021 21:07
@em92 em92 merged commit 44e01a4 into RSS-Bridge:master May 24, 2021
@em92
Copy link
Contributor

em92 commented May 24, 2021

gj!

@yamanq yamanq deleted the yamanq/pixiv branch June 9, 2022 03:03
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.

Pixiv Bridge no results Pixiv Bridge is unable to receive or process the remote website's content
2 participants