From fad7141dbbfb2d235f8cadd98d96cbed9b7c4be6 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sun, 27 Mar 2016 14:42:30 +0200 Subject: [PATCH] Use default template when smsconfirm is called accidently --- lib/NDWeb/Controller/Root.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/NDWeb/Controller/Root.pm b/lib/NDWeb/Controller/Root.pm index 370264b..29a0cbc 100644 --- a/lib/NDWeb/Controller/Root.pm +++ b/lib/NDWeb/Controller/Root.pm @@ -95,6 +95,8 @@ sub smsconfirm : Local { my ($self, $c) = @_; my $dbh = $c->model; + $c->stash(template => 'default.tt2'); + return unless $c->req->param('apiMsgId'); my $sms = $dbh->prepare(q{ @@ -108,7 +110,6 @@ WHERE msgid = $1 ,$c->req->param('charge') ,$c->req->param('timestamp')); - $c->stash(template => 'default.tt2'); } -- 2.39.2