--- loncom/interface/spellcheck.pm 2012/09/04 10:46:05 1.3 +++ loncom/interface/spellcheck.pm 2012/09/10 09:51:06 1.4 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: spellcheck.pm,v 1.3 2012/09/04 10:46:05 foxr Exp $ +# $Id: spellcheck.pm,v 1.4 2012/09/10 09:51:06 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -124,6 +124,8 @@ sub handler { } else { $raw_params = $r->args(); } + + my $query = CGI->new($raw_params); # Figure out the language defaulting to english. @@ -148,7 +150,7 @@ sub handler { } elsif ($query->param('suggest')) { $data = &suggest_spellings($query->param('suggest'), $language); } else { - die "Invalid request"; + $data = "[]"; # We seem to get this from time to time. } $r->print($data);