]> git.mxchange.org Git - friendica.git/commitdiff
naked link with no protocol being passed from Diaspora
authorfriendica <info@friendica.com>
Fri, 17 Feb 2012 07:14:36 +0000 (23:14 -0800)
committerfriendica <info@friendica.com>
Fri, 17 Feb 2012 07:14:36 +0000 (23:14 -0800)
doc/developer [deleted file]
include/oembed.php

diff --git a/doc/developer b/doc/developer
deleted file mode 100755 (executable)
index dd8b316..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-Friendica Developer Guide
-
-Here is how you can join us.
-
-First, get yourself a working git package on the system where you will be
-doing development.
-
-Create your own github account.
-
-Follow the instructions provided here: [[http://help.github.com/fork-a-repo/]]
-to create and use your own tracking fork on github
-
-Then go to your github page and create a "Pull request" when you are ready
-to notify us to merge your work.
-
-**Important**
-
-Please pull in any changes from the project repository and merge them with your work **before** issuing a pull request. We reserve the right to reject any patch which results in a large number of merge conflicts. This is especially true in the case of language translations - where we may not be able to understand the subtle differences between conflicting versions.   
\ No newline at end of file
index 118f7fa4a39f45fdb5b91819f864f199df40365b..af3413a256ec9e58de79698a8f2a4efa3765a1f4 100755 (executable)
@@ -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");