From 1d7d4bf8c6dcd8d3d70129d5a09228a62851cc74 Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 20 Jul 2011 23:14:43 -0700 Subject: [PATCH] wrong path for salmon verify --- boot.php | 2 +- include/salmon.php | 2 +- mod/receive.php | 1 - mod/salmon.php | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/boot.php b/boot.php index 61585419ad..a5ce5f5c3e 100644 --- a/boot.php +++ b/boot.php @@ -135,7 +135,7 @@ define ( 'NAMESPACE_POCO', 'http://portablecontacts.net/spec/1.0' ); define ( 'NAMESPACE_FEED', 'http://schemas.google.com/g/2010#updates-from' ); define ( 'NAMESPACE_OSTATUS', 'http://ostatus.org/schema/1.0' ); define ( 'NAMESPACE_STATUSNET', 'http://status.net/schema/api/1/' ); - +define ( 'NAMESPACE_ATOM1', 'http://www.w3.org/2005/Atom' ); /** * activity stream defines */ diff --git a/include/salmon.php b/include/salmon.php index c1af1a8526..473432f259 100644 --- a/include/salmon.php +++ b/include/salmon.php @@ -145,7 +145,7 @@ EOT; // Setup RSA stuff to PKCS#1 sign the data - set_include_path(get_include_path() . PATH_SEPARATOR . 'library' . PATH_SEPARATOR . 'phpsec'); + set_include_path(get_include_path() . PATH_SEPARATOR . 'library/phpsec'); require_once('library/phpsec/Crypt/RSA.php'); diff --git a/mod/receive.php b/mod/receive.php index 6e36109b3b..6fb68e1545 100644 --- a/mod/receive.php +++ b/mod/receive.php @@ -5,7 +5,6 @@ */ - require_once('include/salmon.php'); require_once('library/simplepie/simplepie.inc'); diff --git a/mod/salmon.php b/mod/salmon.php index 721eae4371..56ac071b06 100644 --- a/mod/salmon.php +++ b/mod/salmon.php @@ -130,7 +130,7 @@ function salmon_post(&$a) { // Setup RSA stuff to verify the signature - set_include_path(get_include_path() . PATH_SEPARATOR . 'library' . PATH_SEPARATOR . 'phpsec'); + set_include_path(get_include_path() . PATH_SEPARATOR . 'library/phpsec'); require_once('library/phpsec/Crypt/RSA.php');