]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge remote-tracking branch 'upstream/master' into social-master
authorRoland Haeder <roland@mxchange.org>
Fri, 18 Dec 2015 20:55:25 +0000 (21:55 +0100)
committerRoland Haeder <roland@mxchange.org>
Fri, 18 Dec 2015 20:55:25 +0000 (21:55 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
20 files changed:
1  2 
actions/rsd.php
classes/File_redirection.php
classes/Notice.php
classes/User_group.php
lib/action.php
lib/default.php
lib/httpclient.php
lib/installer.php
lib/noticelistitem.php
lib/util.php
plugins/Autocomplete/actions/autocomplete.php
plugins/Event/EventPlugin.php
plugins/Linkback/LinkbackPlugin.php
plugins/OStatus/OStatusPlugin.php
plugins/OStatus/classes/Ostatus_profile.php
plugins/Oembed/classes/File_oembed.php
plugins/TwitterBridge/TwitterBridgePlugin.php
scripts/setpassword.php
scripts/startdaemons.sh
scripts/stopdaemons.sh

diff --cc actions/rsd.php
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lib/action.php
Simple merge
diff --cc lib/default.php
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lib/util.php
Simple merge
Simple merge
index 55615273d38ba5ccc57eb8bbce4d1525a49d678c,941e7c4c4b9241705c02dbddefb3e35586973bfe..3a7de0d04558336f4166bc99211918d403e362a0
@@@ -139,14 -140,17 +140,17 @@@ class LinkbackPlugin extends Plugi
  
      // Based on https://github.com/indieweb/mention-client-php
      // which is licensed Apache 2.0
 -    function getWebmention($result) {
 +    function getWebmention(Auth_Yadis_HTTPFetcher $result) {
-         // XXX: the fetcher only gives back one of each header, so this may fail on multiple Link headers
-         if(preg_match('~<((?:https?://)?[^>]+)>; rel="webmention"~', $result->headers['Link'], $match)) {
-             return $match[1];
-         } elseif(preg_match('~<((?:https?://)?[^>]+)>; rel="http://webmention.org/?"~', $result->headers['Link'], $match)) {
-             return $match[1];
+         if (isset($result->headers['Link'])) {
+             // XXX: the fetcher only gives back one of each header, so this may fail on multiple Link headers
+             if(preg_match('~<((?:https?://)?[^>]+)>; rel="webmention"~', $result->headers['Link'], $match)) {
+                 return $match[1];
+             } elseif(preg_match('~<((?:https?://)?[^>]+)>; rel="http://webmention.org/?"~', $result->headers['Link'], $match)) {
+                 return $match[1];
+             }
          }
  
+         // FIXME: Do proper DOM traversal
          if(preg_match('/<(?:link|a)[ ]+href="([^"]+)"[ ]+rel="[^" ]* ?webmention ?[^" ]*"[ ]*\/?>/i', $result->body, $match)
             || preg_match('/<(?:link|a)[ ]+rel="[^" ]* ?webmention ?[^" ]*"[ ]+href="([^"]+)"[ ]*\/?>/i', $result->body, $match)) {
              return $match[1];
Simple merge
Simple merge
index c4d86053e92b09d92d26265b292a29d6074ff6fc,2ed3528c5e0d5b28338df53bb43a14d6a6d292f8..0fa72cea118cf0df81d69e9a83cf1806359abdc5
@@@ -35,12 -35,12 +35,14 @@@ if [ $# -gt 1 ]; the
  fi
  
  DIR=`dirname $0`
- DAEMONS=`$DIR/getvaliddaemons.php $ARGSG`
 -DAEMONS=`php $DIR/getvaliddaemons.php $ARGSG`
++DAEMONS=`$DIR/getvaliddaemons.php $ARGSG 2>/dev/null | grep -v "FUSE_EDEADLK"`
++
++echo "DAEMONS='${DAEMONS}'"
  
  for f in $DAEMONS; do
  
--    echo "Starting $f..."
--    php $f $ARGSD
++    echo "Starting '$f' ..."
++    php $f $ARGSD 2>/dev/null | grep -v "FUSE_EDEADLK"
      echo "DONE."
  
  done
index 274f0903e25a75ad1c5ff5347333b06818625885,e725dd0bf0064588e490eecb90def35bc4d10ba9..e88fe26e22970c17ac944b188b41400f4c76908c
@@@ -39,9 -39,9 +39,9 @@@ if [ $# -gt 1 ]; the
  fi
  
  SDIR=`dirname $0`
- DIR=`$SDIR/getpiddir.php $SITE`
 -DIR=`php $SDIR/getpiddir.php $SITE`
++DIR=`$SDIR/getpiddir.php $SITE 2>/dev/null | grep -v "FUSE_EDEADLK"`
  
- DAEMONS=`$SDIR/getvaliddaemons.php $ARGSG`
 -DAEMONS=`php $SDIR/getvaliddaemons.php $ARGSG`
++DAEMONS=`$SDIR/getvaliddaemons.php $ARGSG 2>/dev/null | grep -v "FUSE_EDEADLK"`
  
  for f in $DAEMONS; do
      f=$(basename $f .php)
@@@ -52,7 -52,7 +52,7 @@@
  
                PID=`cat $ff 2>/dev/null`
                if [ -n "$PID" ] ; then
--                      echo -n "Stopping $f ($PID)..."
++                      echo -n "Stopping '$f' ($PID)..."
                        if kill -3 $PID 2>/dev/null ; then
                                count=0
                                while kill -0 $PID 2>/dev/null ;  do