Skip to content

Bringing my base up to date #2

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

Merged
merged 7 commits into from
Jan 8, 2015
Merged

Bringing my base up to date #2

merged 7 commits into from
Jan 8, 2015

Conversation

AramZS
Copy link
Owner

@AramZS AramZS commented Jan 8, 2015

No description provided.

MitchellMcKenna and others added 7 commits February 17, 2013 22:12
- Some websites (eg. imgur.com) don't have OGP tags but they do
  indicated an image associated with the page using image_src.
  Facebook's oEmbed falls back on this if OGP data isn't avalable.
- Replace file_get_contents() with Curl because Curl is faster and
  file_get_contents() is disabled on a lot of servers for security
  reasons.
- I also notice Curl getting a lot of results back from
  websites where file_get_contents() didn't work.
…ontents-with-curl

Replace file_get_contents() with cURL for speed/security
Added to retrieve using value attribute, fallback.
- Fix DOMDocument::loadHTML() throwing a PHP Warning if the result of
  the cURL call is an empty string. Checks that the result of the curl
  call isn't empty before passing it to _parse() function.
…TML-empty-string-warning

Fix DOMDocument Empty String PHP Warning
Fallback to use image_src if ogp::image isn't set
AramZS added a commit that referenced this pull request Jan 8, 2015
Bringing my base up to date
@AramZS AramZS merged commit 3d2180e into AramZS:master Jan 8, 2015
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.

4 participants