--- loncom/interface/Attic/lonspreadsheet.pm 2002/04/29 21:06:30 1.88 +++ loncom/interface/Attic/lonspreadsheet.pm 2002/05/30 13:37:09 1.90 @@ -1,5 +1,5 @@ # -# $Id: lonspreadsheet.pm,v 1.88 2002/04/29 21:06:30 matthew Exp $ +# $Id: lonspreadsheet.pm,v 1.90 2002/05/30 13:37:09 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1312,6 +1312,9 @@ sub readsheet { } else { $fn = $tmphash{'spreadsheet_default_'.$stype}; } + unless (($fn) && ($fn!~/^error\:/)) { + $fn='default_'.$stype; + } $defaultsheets{$cnum.'_'.$cdom.'_'.$stype}=$fn; } } @@ -2399,17 +2402,8 @@ $tmpdir=$r->dir_config('lonDaemons').'/t # --------------------------- Get query string for limited number of parameters - 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 'uname') || ($name eq 'udom') || - ($name eq 'usymb') || ($name eq 'ufn')) { - unless ($ENV{'form.'.$name}) { - $ENV{'form.'.$name}=$value; - } - } - } + &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, + ['uname','udom','usymb','ufn']); if (($ENV{'form.usymb'}=~/^\_(\w+)/) && (!$ENV{'form.ufn'})) { $ENV{'form.ufn'}='default_'.$1;