Skip to content

Commit

Permalink
Fixed an issue where the app would think Twilio was sending a request…
Browse files Browse the repository at this point in the history
… when it wasnt
  • Loading branch information
cdevroe committed Jun 27, 2016
1 parent 1612d89 commit c7744e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 : ?>
Expand All @@ -36,7 +37,7 @@
<body>
<h1>Three Toe</h1>
<p>A simple SMS autoresponder.</p>
<p>Written by <a href="http://cdevroe.com/">Colin Devroe</a></p>
<p><small>Written by <a href="http://cdevroe.com/">Colin Devroe</a></small></p>
</body>
</html>
<?php endif; ?>
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7744e5

Please sign in to comment.