naked link with no protocol being passed from Diaspora

This commit is contained in:
friendica 2012-02-16 23:14:36 -08:00
commit 48f5bd492d
2 changed files with 5 additions and 18 deletions

View file

@ -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");