From 9f5b32d7833cce9171bc0035657693c7d73afc84 Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Mon, 24 Sep 2018 23:09:57 -0700 Subject: pinyweb: scalarizing CGI params because perl Because not everyone wants to Perl Jam. --- pinyweb/cgi-bin/checkconstraint.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pinyweb/cgi-bin/checkconstraint.cgi') diff --git a/pinyweb/cgi-bin/checkconstraint.cgi b/pinyweb/cgi-bin/checkconstraint.cgi index e0a59c3..8a36569 100755 --- a/pinyweb/cgi-bin/checkconstraint.cgi +++ b/pinyweb/cgi-bin/checkconstraint.cgi @@ -15,8 +15,8 @@ if ( $q->request_method( ) eq "OPTIONS" ) { print "Status: 200 OK\nAccess-Control-Allow-Headers: *\nAccess-Control-Allow-Methods: GET, OPTIONS, POST\nAccess-Control-Allow-Origin: *\nAccess-Control-Max-Age: 3600\nContent-Type: text/plain\n\n"; } else { - my $type = $q->param( 't' ); - my $value = $q->param( 'v' ); + my $type = scalar( $q->param('t') ); + my $value = scalar( $q->param('v') ); if ( not defined $type or not defined $value ) { print "Status: 200 OK\nContent-type: application/json\n\n"; -- cgit v1.2.3