]> ruin.nu Git - ndwebbie.git/commitdiff
Ignore accidental calls to smsconfirm
authorMichael Andreen <harv@ruin.nu>
Sun, 27 Mar 2016 11:25:15 +0000 (13:25 +0200)
committerMichael Andreen <harv@ruin.nu>
Sun, 27 Mar 2016 11:25:15 +0000 (13:25 +0200)
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'