Request: cgi korrekt lesen wenn form leer ist
authorSven Schöling <s.schoeling@linet-services.de>
Mon, 2 Oct 2017 10:07:54 +0000 (12:07 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Thu, 7 Dec 2017 12:55:20 +0000 (13:55 +0100)
SL/Request.pm

index 00744ac..75cac69 100644 (file)
@@ -301,7 +301,7 @@ sub read_cgi_input {
 
   my $encoding     = delete $temp_target->{INPUT_ENCODING} || 'UTF-8';
 
-  _recode_recursively(SL::Iconv->new($encoding, 'UTF-8'), $temp_target => $target) if keys %$target;
+  _recode_recursively(SL::Iconv->new($encoding, 'UTF-8'), $temp_target => $target) if keys %$temp_target;
 
   if ($target->{RESTORE_FORM_FROM_SESSION_ID}) {
     my %temp_form;