aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-31 20:45:13 -0700
committerzotlabs <mike@macgirvin.com>2017-08-31 20:45:13 -0700
commitb413beeb365ea09ac79f57e68dbb6ac49b5ea056 (patch)
tree0832ade4ff0c9c98d9ae593e41cb4d09a22fbda2 /include
parent0cf5536e902aa9e74c7ca8f62bec3992f6f6a276 (diff)
downloadvolse-hubzilla-b413beeb365ea09ac79f57e68dbb6ac49b5ea056.tar.gz
volse-hubzilla-b413beeb365ea09ac79f57e68dbb6ac49b5ea056.tar.bz2
volse-hubzilla-b413beeb365ea09ac79f57e68dbb6ac49b5ea056.zip
add server-to-server magic auth to dav and cdav controllers
Diffstat (limited to 'include')
-rw-r--r--include/api_auth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/api_auth.php b/include/api_auth.php
index 4b1aae642..01a4599aa 100644
--- a/include/api_auth.php
+++ b/include/api_auth.php
@@ -50,7 +50,7 @@ function api_login(&$a){
/* Signature authentication */
- if(array_key_exists($head,$_SERVER) && substr(trim($_SERVER[$head]),0,5) === 'Signature') {
+ if(array_key_exists($head,$_SERVER) && substr(trim($_SERVER[$head]),0,9) === 'Signature') {
$sigblock = \Zotlabs\Web\HTTPSig::parse_sigheader($_SERVER[$head]);
if($sigblock) {
$keyId = $sigblock['keyId'];