From 65a8965e85853b624f64a03930dfbe39a1a339cc Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 14 Nov 2018 18:07:39 -0800 Subject: extra logging --- Zotlabs/Web/HTTPSig.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Zotlabs/Web') diff --git a/Zotlabs/Web/HTTPSig.php b/Zotlabs/Web/HTTPSig.php index f27aa0556..0ec534948 100644 --- a/Zotlabs/Web/HTTPSig.php +++ b/Zotlabs/Web/HTTPSig.php @@ -342,6 +342,10 @@ class HTTPSig { */ static function parse_sigheader($header) { + if(is_array($header)) { + btlogger('is_array: ' . print_r($header,true)); + } + $ret = []; $matches = []; -- cgit v1.2.3 From d0f0a74df8835e54b42daf5b96e53eecc0481c71 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 14 Nov 2018 18:14:47 -0800 Subject: encrypted header issue --- Zotlabs/Web/HTTPSig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs/Web') diff --git a/Zotlabs/Web/HTTPSig.php b/Zotlabs/Web/HTTPSig.php index 0ec534948..fe0b9428f 100644 --- a/Zotlabs/Web/HTTPSig.php +++ b/Zotlabs/Web/HTTPSig.php @@ -401,7 +401,7 @@ class HTTPSig { $data = $matches[1]; if($iv && $key && $alg && $data) { - return crypto_unencapsulate([ 'iv' => $iv, 'key' => $key, 'alg' => $alg, 'data' => $data ] , $prvkey); + return crypto_unencapsulate([ 'encrypted' => true, 'iv' => $iv, 'key' => $key, 'alg' => $alg, 'data' => $data ] , $prvkey); } return ''; -- cgit v1.2.3 From a7d2f9b53005f0c27ddfe1ef32fab78591c5374f Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 15 Nov 2018 15:35:06 -0800 Subject: remove checkjs and nojs --- Zotlabs/Web/CheckJS.php | 50 ------------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 Zotlabs/Web/CheckJS.php (limited to 'Zotlabs/Web') diff --git a/Zotlabs/Web/CheckJS.php b/Zotlabs/Web/CheckJS.php deleted file mode 100644 index e83ccf27b..000000000 --- a/Zotlabs/Web/CheckJS.php +++ /dev/null @@ -1,50 +0,0 @@ -jsdisabled = 1; - else - $this->jsdisabled = 0; - if(intval($_COOKIE['jsdisabled'])) - $this->jsdisabled = 1; - else - $this->jsdisabled = 0; - - $page = bin2hex(\App::$query_string); - - if(! $this->jsdisabled) { - if($test) { - $this->jsdisabled = 1; - if(array_key_exists('jsdisabled',$_COOKIE)) - $this->jsdisabled = $_COOKIE['jsdisabled']; - - if(! array_key_exists('jsdisabled',$_COOKIE)) { - \App::$page['htmlhead'] .= "\r\n" . '' . "\r\n"; - /* emulate JS cookie if cookies are not accepted */ - if (array_key_exists('jsdisabled',$_GET)) { - $_COOKIE['jsdisabled'] = $_GET['jsdisabled']; - } - } - } - else { - \App::$page['htmlhead'] .= "\r\n" . '' . "\r\n"; - } - } - - } - - function disabled() { - return $this->jsdisabled; - } - - -} - - -- cgit v1.2.3