Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2b8ec027

Von Sven Schöling vor fast 4 Jahren hinzugefügt

  • ID 2b8ec0270936745ea04c8730b87905805af1577a
  • Vorgänger 80711e19
  • Nachfolger e6491c8e

CGI aus Abhängigkeiten entfernt und warnings behoben

Unterschiede anzeigen:

SL/Dispatcher.pm
8 8
#   parse_html_template('generic/error')
9 9

  
10 10
use Carp;
11
use CGI qw( -no_xhtml);
12 11
use Config::Std;
13 12
use DateTime;
14 13
use Encode;
SL/InstallationCheck.pm
20 20
  { name => "Algorithm::CheckDigits",              url => "http://search.cpan.org/~mamawe/",    debian => 'libalgorithm-checkdigits-perl' },
21 21
  { name => "Archive::Zip",    version => '1.40',  url => "http://search.cpan.org/~phred/",     debian => 'libarchive-zip-perl' },
22 22
  { name => "CAM::PDF",                            url => "https://metacpan.org/pod/CAM::PDF",  debian => 'libcam-pdf-perl' },
23
  { name => "CGI",             version => '3.43',  url => "http://search.cpan.org/~leejo/",     debian => 'libcgi-pm-perl' }, # 4.09 is not core anymore (perl 5.20)
24 23
  { name => "Clone",                               url => "http://search.cpan.org/~rdf/",       debian => 'libclone-perl' },
25 24
  { name => "Config::Std",                         url => "http://search.cpan.org/~dconway/",   debian => 'libconfig-std-perl' },
26 25
  { name => "Daemon::Generic", version => '0.71',  url => "http://search.cpan.org/~muir/",      debian => 'libdaemon-generic-perl'},
SL/Request.pm
49 49
}
50 50

  
51 51
sub init_cookies {
52
  my $raw_cookie = $ENV{HTTP_COOKIE} || $ENV{COOKIE};
52
  my $raw_cookie = $ENV{HTTP_COOKIE} // $ENV{COOKIE};
53

  
54
  return {} unless $raw_cookie;
55

  
53 56
  my @pairs      = split /[;,] ?/, $raw_cookie;
54 57
  my %results;
55 58
  for my $pair (@pairs) {
56 59
    my ($key, $value) = split /=/, trim($pair);
57
    $value //= '';
58
    $results{$key} = $value;
60
    $results{$key} = $value // '';
59 61
  }
62

  
60 63
  \%results;
61 64
}
62 65

  
SL/Response.pm
59 59

  
60 60
  # handle more than one cookie
61 61
  my @cookies = (listify(delete $header{cookie}), listify($self->cookie));
62
  push @header, "Set-Cookie: $_" for @cookies;
62
  push @header, "Set-Cookie: $_" for grep defined, @cookies;
63 63

  
64 64
  # content-disposition has some weird syntax from RFC1806
65 65
  my $attachment = delete $header{attachment};
doc/dokumentation.xml
167 167
            <para><literal>CAM::PDF</literal></para>
168 168
          </listitem>
169 169

  
170
          <listitem>
171
            <para><literal>CGI</literal></para>
172
          </listitem>
173

  
174 170
          <listitem>
175 171
            <para><literal>Clone</literal></para>
176 172
          </listitem>
......
429 425
  libtext-iconv-perl liburi-perl libxml-writer-perl libyaml-perl \
430 426
  libimage-info-perl libgd-gd2-perl libapache2-mod-fcgid \
431 427
  libfile-copy-recursive-perl postgresql libalgorithm-checkdigits-perl \
432
  libcrypt-pbkdf2-perl git libcgi-pm-perl libtext-unidecode-perl libwww-perl\
428
  libcrypt-pbkdf2-perl git libtext-unidecode-perl libwww-perl\
433 429
  postgresql-contrib poppler-utils libhtml-restrict-perl\
434 430
  libdatetime-set-perl libset-infinite-perl liblist-utilsby-perl\
435 431
  libdaemon-generic-perl libfile-flock-perl libfile-slurp-perl\
scripts/console
77 77
package Devel::REPL;
78 78

  
79 79
use utf8;
80
use CGI qw( -no_xhtml);
81 80
use DateTime;
82 81
use SL::Auth;
83 82
use SL::Form;
......
108 107

  
109 108
  $::instance_conf = SL::InstanceConfiguration->new;
110 109
  $::request       = SL::Request->new(
111
    cgi    => CGI->new({}),
112 110
    layout => SL::Layout::None->new,
113 111
  );
114 112

  
scripts/dbupgrade2_tool.pl
469 469
$locale    = Locale->new;
470 470
$form      = Form->new;
471 471
$::request = SL::Request->new(
472
  cgi    => CGI->new({}),
473 472
  layout => SL::Layout::None->new,
474 473
);
475 474

  
scripts/rose_auto_create_model.pl
9 9
  push   (@INC, $FindBin::Bin . '/..');                  # '.' will be removed from @INC soon.
10 10
}
11 11

  
12
use CGI qw( -no_xhtml);
13 12
use Config::Std;
14 13
use Data::Dumper;
15 14
use Digest::MD5 qw(md5_hex);
scripts/task_server.pl
11 11
  push   (@INC, $FindBin::Bin . '/..');                  # '.' will be removed from @INC soon.
12 12
}
13 13

  
14
use CGI qw( -no_xhtml);
15 14
use Cwd;
16 15
use Daemon::Generic;
17 16
use Data::Dumper;
......
70 69

  
71 70
  $::instance_conf = SL::InstanceConfiguration->new;
72 71
  $::request       = SL::Request->new(
73
    cgi            => CGI->new({}),
74 72
    layout         => SL::Layout::None->new,
75 73
  );
76 74

  
t/Support/TestSetup.pm
3 3
use strict;
4 4

  
5 5
use Data::Dumper;
6
use CGI qw( -no_xhtml);
7 6
use IO::File;
8 7
use SL::Auth;
9 8
use SL::Form;
......
58 57
  my $self = shift;
59 58

  
60 59
  my $request = SL::Request->new(
61
    cgi    => CGI->new({}),
62 60
    layout => SL::Layout::None->new,
63 61
    @_,
64 62
  );

Auch abrufbar als: Unified diff