Skip to content

Bringing my base up to date#2

Merged
AramZS merged 7 commits into
AramZS:masterfrom
scottmac:master
Jan 8, 2015
Merged

Bringing my base up to date#2
AramZS merged 7 commits into
AramZS:masterfrom
scottmac:master

Conversation

@AramZS

@AramZS AramZS commented Jan 8, 2015

Copy link
Copy Markdown
Owner

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