]> ruin.nu Git - ndwebbie.git/blobdiff - lib/NDWeb/Controller/Root.pm
Ignore accidental calls to smsconfirm
[ndwebbie.git] / lib / NDWeb / Controller / Root.pm
index bc422a6fcd6619b331bb206a45e9951624f6efa8..370264b06407a433782dfb980e9c0bd25f96a549 100644 (file)
@@ -95,6 +95,8 @@ sub smsconfirm : Local {
        my ($self, $c) = @_;
        my $dbh = $c->model;
 
+       return unless $c->req->param('apiMsgId');
+
        my $sms = $dbh->prepare(q{
 UPDATE sms SET status = $2, cost = $3
        ,time = TIMESTAMP WITH TIME ZONE 'epoch' + $4 * INTERVAL '1 second'