aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rwxr-xr-xinclude/oembed.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/oembed.php b/include/oembed.php
index 118f7fa4a..af3413a25 100755
--- a/include/oembed.php
+++ b/include/oembed.php
@@ -12,6 +12,11 @@ function oembed_replacecb($matches){
function oembed_fetch_url($embedurl){
+ if(! strpos('://',$embedurl)) {
+ // this may be wrong but it's already wrong, we can only guess
+ $embedurl = 'http://' . $embedurl;
+ }
+
$txt = Cache::get($embedurl);
$noexts = array("mp3","mp4","ogg","ogv","oga","ogm","webm");