From bb10added437875b358b86ec903f52f62217803c Mon Sep 17 00:00:00 2001 From: ubergeek Date: Thu, 21 Mar 2019 14:21:01 -0400 Subject: [PATCH 1/3] testing --- githook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/githook.php b/githook.php index 81e1e15..225e10b 100644 --- a/githook.php +++ b/githook.php @@ -17,7 +17,7 @@ $json = file_get_contents('php://input'); $data = json_decode($json, true); $client_token = $data["secret"]; -if ($client_token !== $access_token) +if ($client_token != $access_token) { http_response_code(403); echo "HTTP 403 - Forbidden, P1."; From 55d45c5a40cda190bbfe4033c855824696738028 Mon Sep 17 00:00:00 2001 From: Corey Reichle Date: Thu, 21 Mar 2019 14:29:15 -0400 Subject: [PATCH 2/3] Update key --- githook.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/githook.php b/githook.php index 225e10b..7c9bf4c 100644 --- a/githook.php +++ b/githook.php @@ -3,7 +3,7 @@ /* gitea deploy webhook */ /* security */ -$access_token = '1234567890'; +$access_token = 'abcdefghijklmnop'; $ansible_lastrun = '/dev/shm/ansible-hook-last-run'; $ansible_dropfile = '/dev/shm/run-ansible'; $www_lastrun = '/dev/shm/www-hook-last-run'; @@ -17,7 +17,7 @@ $json = file_get_contents('php://input'); $data = json_decode($json, true); $client_token = $data["secret"]; -if ($client_token != $access_token) +if ($client_token !== $access_token) { http_response_code(403); echo "HTTP 403 - Forbidden, P1."; From d0ba42dfa7bfaf7a2b738b6d0eca6d1ac9de4312 Mon Sep 17 00:00:00 2001 From: Robert Miles Date: Thu, 21 Mar 2019 18:56:59 -0400 Subject: [PATCH 3/3] Fix tilde.chat irc url --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 63d3344..66bccbd 100644 --- a/index.php +++ b/index.php @@ -38,7 +38,7 @@
 

The thunix Phoenix project aims to provide a new user experience for shell users, with integration into the wider Tildeverse network.

-

Join us on IRC on irc.tilde.net/6669 in the #thunix channel, or just click here for a web client:

+

Join us on IRC on irc.tilde.chat/6697 in the #thunix channel, or just click here for a web client:

If you want to sign up for an account, simply open our signup form and provide us with:

  • Your contact name