From 9cd77b56ab8253b9c664fe18b8cf6def647f9ca8 Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 15 Aug 2011 01:29:58 -0700 Subject: temporarily disable oembed --- include/oembed.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/oembed.php b/include/oembed.php index 06a37d8e4..e86275e61 100644 --- a/include/oembed.php +++ b/include/oembed.php @@ -7,6 +7,7 @@ function oembed_replacecb($matches){ function oembed_fetch_url($embedurl){ +return; $r = q("SELECT v FROM `cache` WHERE k='%s'", dbesc($embedurl)); @@ -17,6 +18,8 @@ function oembed_fetch_url($embedurl){ // try oembed autodiscovery $html_text = fetch_url($embedurl); + if(! $html_text) + return; $dom = @DOMDocument::loadHTML($html_text); if ($dom){ $xpath = new DOMXPath($dom); -- cgit v1.2.3