Skip to content

Commit

Permalink
Extra Perl Validation
Browse files Browse the repository at this point in the history
  • Loading branch information
theolaa committed Jul 31, 2021
1 parent a5db1ec commit 3f8f495
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cgi/bmi_calculator.pl
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
my %data;
$data{firstname} $query->param('firstname');
$data{firstname}=~s/(<([^>]+)>)//ig;
$data{firstname}=~s/^\s+|\s+$//g
$data{firstname}=~s/^\s+|\s+$//g;
$data{lastname}=$query->param('lastname');
$data{lastname}=~s/(<([^>]+)>)//ig;
$data{lastname}=~s/^\s+|\s+$//g
$data{lastname}=~s/^\s+|\s+$//g;
$data{email}=$query->param('email');
$data{email}=~s/(<([^>]+)>)//ig;
$data{email}=~s/^\s+|\s+$//g
$data{email}=~s/^\s+|\s+$//g;

# print $query->header;
print "Content-type: text/html\n\n";
Expand Down

0 comments on commit 3f8f495

Please sign in to comment.