--- loncom/cgi/barcode.png 2001/12/11 19:32:03 1.5 +++ loncom/cgi/barcode.png 2001/12/11 20:01:05 1.6 @@ -3,7 +3,7 @@ # The LearningOnline Network with CAPA # barcode.gif - A CGI script that dynamically outputs a barcode. # -# $Id: barcode.png,v 1.5 2001/12/11 19:32:03 harris41 Exp $ +# $Id: barcode.png,v 1.6 2001/12/11 20:01:05 harris41 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -43,14 +43,14 @@ use strict; use GD::Barcode::Code39; -map { +foreach (split(/&/,$ENV{'QUERY_STRING'})) { my ($name, $value) = split(/=/,$_); $value =~ tr/+/ /; $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",hex($1))/eg; if ($name eq 'encode') { $ENV{'form.'.$name}=$value; } -} (split(/&/,$ENV{'QUERY_STRING'})); +} # Tell the server we are sending a gif graphic print <