From 7906b57e7a6d2f08d4a22fc10a087c667c1b9c39 Mon Sep 17 00:00:00 2001 From: Metabox Date: Sun, 21 Jul 2019 09:53:15 +1000 Subject: [PATCH] minor. --- htdocs/cgi-bin/json.cgi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/htdocs/cgi-bin/json.cgi b/htdocs/cgi-bin/json.cgi index 9219cf2..7c77d4f 100755 --- a/htdocs/cgi-bin/json.cgi +++ b/htdocs/cgi-bin/json.cgi @@ -44,8 +44,9 @@ my $sid = $session->id(); my $dbname = "";#$session->param('database'); my $userid = $session->param('alias'); my $password = $session->param('passw'); -my $action = $session->param('action'); -my $lid = $session->param('id'); +my $action = $cgi->param('action'); +my $lid = $cgi->param('id'); +my $doc = $cgi->param('doc'); if ($AUTHORITY) { $userid = $password = $AUTHORITY; @@ -76,10 +77,11 @@ $today->set_time_zone($TIME_ZONE); ############### my $json = JSON->new->utf8->space_after->pretty->allow_blessed->encode ({date => DateTime::Format::SQLite->format_datetime($today), - origin => "LifeLog.".$RELEASE_VER, + response_origin => "LifeLog.".$RELEASE_VER, response => "Feature Under Development!", alias => $userid, log_id => $lid, + received => $doc }); -- 2.34.1