X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/6ccea47689a953faf3cc611e2014a8a34c360a0a..90a1b6fad6aeeab84fc96d6511fdf42fff315df5:/SL/Request.pm diff --git a/SL/Request.pm b/SL/Request.pm index f72694d1c..75cac69bb 100644 --- a/SL/Request.pm +++ b/SL/Request.pm @@ -18,6 +18,7 @@ our @EXPORT_OK = qw(flatten unflatten read_cgi_input); use Rose::Object::MakeMethods::Generic ( + scalar => [ qw(applying_database_upgrades) ], 'scalar --get_set_init' => [ qw(cgi layout presenter is_ajax type) ], ); @@ -41,6 +42,10 @@ sub init_type { return 'html'; } +sub is_https { + $ENV{HTTPS} && 'on' eq lc $ENV{HTTPS}; +} + sub cache { my ($self, $topic, $default) = @_; @@ -296,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;