[Pkg-privacy-commits] [msva-perl] 18/356: parsing POSTed data

Ximin Luo infinity0 at moszumanska.debian.org
Mon Aug 24 07:41:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository msva-perl.

commit 57d56da62bb0599822e0ff81b0ebee86a6121397
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date:   Sat Jan 9 16:26:58 2010 -0500

    parsing POSTed data
---
 msva | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/msva b/msva
index d1a2281..9f7e5b7 100755
--- a/msva
+++ b/msva
@@ -41,11 +41,12 @@ use strict;
     return if !ref $cgi;
 
     # FIXME: these should be opening up a json blob instead of using CGI params.
-    my $uid = $cgi->param('uid');
-    my $pkc = $cgi->param('pkc');
-    my $context = $cgi->param('context');
+    my $data = from_json($cgi->param('POSTDATA'));
 
-    my $ret = { foo => 'bar' };
+    use Data::Dumper;
+    print STDERR Dumper($data);
+
+    my $ret = { valid => 'true' };
     # my $status = '404 no match found for the public key in this certificate';
     # or:
     my $status = '200 match found, authentication details to follow';

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/msva-perl.git



More information about the Pkg-privacy-commits mailing list