From c7744e5868b71c209a5e7f5de7c524e9cede3f4b Mon Sep 17 00:00:00 2001 From: Colin Devroe Date: Mon, 27 Jun 2016 12:03:18 -0400 Subject: [PATCH] Fixed an issue where the app would think Twilio was sending a request when it wasnt --- index.php | 5 +++-- readme.md | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index d4bc605..029bcd1 100644 --- a/index.php +++ b/index.php @@ -24,7 +24,8 @@ include('app/init.php'); -if ( isset($_POST) ) : +// Determine if Twilio is sending a request +if ( isset($_POST) && isset($_POST['Body']) ) : threetoe_respond(); exit; else : ?> @@ -36,7 +37,7 @@

Three Toe

A simple SMS autoresponder.

-

Written by Colin Devroe

+

Written by Colin Devroe

diff --git a/readme.md b/readme.md index e0b6b35..96e201f 100644 --- a/readme.md +++ b/readme.md @@ -22,6 +22,9 @@ This simple script was built to scratch an itch and learn the basics of the Twil ## Version History +### 0.2.1 - June 27, 2016 + - Fixed: App determination if Twilio is sending a request or not + ### 0.2.0 - June 27, 2016 - Added: Code & Response configuration panel - Update: Generic "not found" response to make less real estate specific