From: Christian Weiske Date: Wed, 26 Mar 2014 22:40:45 +0000 (+0100) Subject: disable ssl verification when validating linkback request X-Git-Url: https://git.cweiske.de/stapibas.git/commitdiff_plain/cfb679840a7596a24527a7f505728f7f9a1a6118 disable ssl verification when validating linkback request --- diff --git a/www/xmlrpc.php b/www/xmlrpc.php index 4b7ce04..5a56488 100644 --- a/www/xmlrpc.php +++ b/www/xmlrpc.php @@ -6,7 +6,20 @@ namespace stapibas; require_once 'www-header.php'; $s = new \PEAR2\Services\Linkback\Server(); -$s->addCallback(new Linkback_DbStorage($db)); -$s->addCallback(new Linkback_Mailer()); + +$fs = new \PEAR2\Services\Linkback\Server\Callback\FetchSource(); +$fs->getRequest()->setConfig( + array( + 'ssl_verify_peer' => false, + 'ssl_verify_host' => false + ) +); +$callbacks = array( + $fs, + new \PEAR2\Services\Linkback\Server\Callback\LinkExists(), + new Linkback_DbStorage($db), + new Linkback_Mailer() +); +$s->setCallbacks($callbacks); $s->run(); ?>