naked link with no protocol being passed from Diaspora
This commit is contained in:
parent
2abbd81ce1
commit
48f5bd492d
2 changed files with 5 additions and 18 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue