Changeset 24452
- Timestamp:
- 11/20/08 17:03:49 (5 years ago)
- Location:
- lang/perl/NanoA/trunk
- Files:
-
- 2 modified
-
lib/NanoA.pm (modified) (1 diff)
-
plugin/mobile.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/NanoA/trunk/lib/NanoA.pm
r24449 r24452 58 58 return $self->{query} = shift 59 59 if @_; 60 if ($self->{query} && ref $self->{query} eq 'CODE') { 61 $self->{query} = $self->{query}->($self); 62 } 60 63 unless ($self->{query}) { 61 64 require_once('CGI/Simple.pm'); -
lang/perl/NanoA/trunk/plugin/mobile.pm
r24449 r24452 31 31 # build query object by myself and register it, since in first prerun, 32 32 # there is no query object yet 33 do { 34 NanoA::require_once('CGI/Simple.pm'); 35 local $CGI::Simple::PARAM_UTF8 = undef; 36 my $q = CGI::Simple->new(); 37 # error occurs when trying to replace contents using Vars 38 for my $n ($q->param) { 39 my @v = $q->param($n); 40 if (@v >= 2) { 41 $_ = decode($charset, $_) 42 for @v; 43 $q->param($n, \@v); 44 } else { 45 $q->param($n, decode($charset, $v[0])); 33 $app->query( 34 sub { 35 NanoA::require_once('CGI/Simple.pm'); 36 local $CGI::Simple::PARAM_UTF8 = undef; 37 my $q = CGI::Simple->new(); 38 # error occurs when trying to replace contents using Vars 39 for my $n ($q->param) { 40 my @v = $q->param($n); 41 if (@v >= 2) { 42 $_ = decode($charset, $_) 43 for @v; 44 $q->param($n, \@v); 45 } else { 46 $q->param($n, decode($charset, $v[0])); 47 } 46 48 } 47 }48 $app->query($q);49 };49 $q; 50 }, 51 ); 50 52 } 51 53
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)