View | Details | Raw Unified | Return to bug 22542
Collapse All | Expand All

(-)a/opac/clubs/clubs-tab.pl (-1 / +1 lines)
Lines 49-52 $template->param( Link Here
49
    borrower    => $borrower,
49
    borrower    => $borrower,
50
);
50
);
51
51
52
output_html_with_http_headers( $cgi, $cookie, $template->output );
52
output_html_with_http_headers( $cgi, $cookie, $template->output, undef, { force_no_caching => 1 } );
(-)a/opac/clubs/enroll.pl (-1 / +1 lines)
Lines 46-49 $template->param( Link Here
46
    borrowernumber => $borrowernumber,
46
    borrowernumber => $borrowernumber,
47
);
47
);
48
48
49
output_html_with_http_headers( $cgi, $cookie, $template->output );
49
output_html_with_http_headers( $cgi, $cookie, $template->output, undef, { force_no_caching => 1 } );
(-)a/opac/opac-account-pay.pl (-1 / +1 lines)
Lines 138-144 if ( $payment_method eq 'paypal' ) { Link Here
138
        $error = 1;
138
        $error = 1;
139
    }
139
    }
140
140
141
    output_html_with_http_headers( $cgi, $cookie, $template->output ) if $error;
141
    output_html_with_http_headers( $cgi, $cookie, $template->output, undef, { force_no_caching => 1 } ) if $error;
142
}
142
}
143
else {
143
else {
144
    Koha::Plugins::Handler->run(
144
    Koha::Plugins::Handler->run(
(-)a/opac/opac-addbybiblionumber.pl (-1 / +1 lines)
Lines 164-167 if ($authorized) { Link Here
164
    );
164
    );
165
}
165
}
166
$template->param( authorized => $authorized, errcode => $errcode, );
166
$template->param( authorized => $authorized, errcode => $errcode, );
167
output_html_with_http_headers $query, $cookie, $template->output;
167
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
(-)a/opac/opac-alert-subscribe.pl (-1 / +1 lines)
Lines 90-93 else { Link Here
90
        biblionumber   => $biblionumber,
90
        biblionumber   => $biblionumber,
91
    );
91
    );
92
}
92
}
93
output_html_with_http_headers $query, $cookie, $template->output;
93
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
(-)a/opac/opac-illrequests.pl (-1 / +1 lines)
Lines 142-145 $template->param( Link Here
142
    method          => $op
142
    method          => $op
143
);
143
);
144
144
145
output_html_with_http_headers $query, $cookie, $template->output;
145
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
(-)a/opac/opac-request-article.pl (-1 / +1 lines)
Lines 84-87 $template->param( Link Here
84
    patron => $patron,
84
    patron => $patron,
85
);
85
);
86
86
87
output_html_with_http_headers $cgi, $cookie, $template->output;
87
output_html_with_http_headers $cgi, $cookie, $template->output, undef, { force_no_caching => 1 };
(-)a/opac/opac-reserve.pl (-10 / +5 lines)
Lines 71-81 for ( C4::Context->preference("OPACShowHoldQueueDetails") ) { Link Here
71
    m/priority/ and $show_priority = 1;
71
    m/priority/ and $show_priority = 1;
72
}
72
}
73
73
74
sub get_out {
75
	output_html_with_http_headers(shift,shift,shift); # $query, $cookie, $template->output;
76
	exit;
77
}
78
79
my $patron = Koha::Patrons->find( $borrowernumber );
74
my $patron = Koha::Patrons->find( $borrowernumber );
80
75
81
my $can_place_hold_if_available_at_pickup = C4::Context->preference('OPACHoldsIfAvailableAtPickup');
76
my $can_place_hold_if_available_at_pickup = C4::Context->preference('OPACHoldsIfAvailableAtPickup');
Lines 94-100 if ( $patron->category->effective_BlockExpiredPatronOpacActions ) { Link Here
94
89
95
        # cannot reserve, their card has expired and the rules set mean this is not allowed
90
        # cannot reserve, their card has expired and the rules set mean this is not allowed
96
        $template->param( message => 1, expired_patron => 1 );
91
        $template->param( message => 1, expired_patron => 1 );
97
        get_out( $query, $cookie, $template->output );
92
        output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
98
    }
93
    }
99
}
94
}
100
95
Lines 120-126 if (! $biblionumbers) { Link Here
120
115
121
if ((! $biblionumbers) && (! $query->param('place_reserve'))) {
116
if ((! $biblionumbers) && (! $query->param('place_reserve'))) {
122
    $template->param(message=>1, no_biblionumber=>1);
117
    $template->param(message=>1, no_biblionumber=>1);
123
    &get_out($query, $cookie, $template->output);
118
    output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
124
}
119
}
125
120
126
# Pass the numbers to the page so they can be fed back
121
# Pass the numbers to the page so they can be fed back
Lines 132-138 my @biblionumbers = split /\//, $biblionumbers; Link Here
132
if (($#biblionumbers < 0) && (! $query->param('place_reserve'))) {
127
if (($#biblionumbers < 0) && (! $query->param('place_reserve'))) {
133
    # TODO: New message?
128
    # TODO: New message?
134
    $template->param(message=>1, no_biblionumber=>1);
129
    $template->param(message=>1, no_biblionumber=>1);
135
    &get_out($query, $cookie, $template->output);
130
    output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
136
}
131
}
137
132
138
133
Lines 224-230 if ( $query->param('place_reserve') ) { Link Here
224
    my $selectionCount = @selectedItems;
219
    my $selectionCount = @selectedItems;
225
    if (($selectionCount == 0) || (($selectionCount % 3) != 0)) {
220
    if (($selectionCount == 0) || (($selectionCount % 3) != 0)) {
226
        $template->param(message=>1, bad_data=>1);
221
        $template->param(message=>1, bad_data=>1);
227
        &get_out($query, $cookie, $template->output);
222
        output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
228
    }
223
    }
229
224
230
    my $failed_holds = 0;
225
    my $failed_holds = 0;
Lines 413-419 foreach my $biblioNum (@biblionumbers) { Link Here
413
    my $biblioData = $biblioDataHash{$biblioNum};
408
    my $biblioData = $biblioDataHash{$biblioNum};
414
    if (! $biblioData) {
409
    if (! $biblioData) {
415
        $template->param(message=>1, bad_biblionumber=>$biblioNum);
410
        $template->param(message=>1, bad_biblionumber=>$biblioNum);
416
        &get_out($query, $cookie, $template->output);
411
        output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
417
    }
412
    }
418
413
419
    my @not_available_at = ();
414
    my @not_available_at = ();
(-)a/opac/opac-sendbasket.pl (-2 / +2 lines)
Lines 192-198 END_OF_BODY Link Here
192
        $template->param( error => 1 );
192
        $template->param( error => 1 );
193
    }
193
    }
194
    $template->param( email_add => $email_add );
194
    $template->param( email_add => $email_add );
195
    output_html_with_http_headers $query, $cookie, $template->output;
195
    output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
196
}
196
}
197
else {
197
else {
198
    my $new_session_id = $cookie->value;
198
    my $new_session_id = $cookie->value;
Lines 204-208 else { Link Here
204
        csrf_token => Koha::Token->new->generate_csrf(
204
        csrf_token => Koha::Token->new->generate_csrf(
205
            { session_id => $new_session_id, } ),
205
            { session_id => $new_session_id, } ),
206
    );
206
    );
207
    output_html_with_http_headers $query, $cookie, $template->output;
207
    output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
208
}
208
}
(-)a/opac/opac-sendshelf.pl (-3 / +3 lines)
Lines 197-215 END_OF_BODY Link Here
197
        shelfid => $shelfid,
197
        shelfid => $shelfid,
198
        email => $email,
198
        email => $email,
199
    );
199
    );
200
    output_html_with_http_headers $query, $cookie, $template->output;
200
    output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
201
201
202
202
203
}else{
203
}else{
204
    $template->param( shelfid => $shelfid,
204
    $template->param( shelfid => $shelfid,
205
                      url     => "/cgi-bin/koha/opac-sendshelf.pl",
205
                      url     => "/cgi-bin/koha/opac-sendshelf.pl",
206
                    );
206
                    );
207
    output_html_with_http_headers $query, $cookie, $template->output;
207
    output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
208
}
208
}
209
209
210
} else {
210
} else {
211
    $template->param( invalidlist => 1,
211
    $template->param( invalidlist => 1,
212
                      url     => "/cgi-bin/koha/opac-sendshelf.pl",
212
                      url     => "/cgi-bin/koha/opac-sendshelf.pl",
213
    );
213
    );
214
    output_html_with_http_headers $query, $cookie, $template->output;
214
    output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
215
}
215
}
(-)a/opac/opac-shareshelf.pl (-2 / +1 lines)
Lines 54-61 if ( !$pvar->{errcode} ) { Link Here
54
    show_accept($pvar)    if $pvar->{op} eq 'accept';
54
    show_accept($pvar)    if $pvar->{op} eq 'accept';
55
}
55
}
56
load_template_vars($pvar);
56
load_template_vars($pvar);
57
output_html_with_http_headers $pvar->{query}, $pvar->{cookie},
57
output_html_with_http_headers $pvar->{query}, $pvar->{cookie}, $pvar->{template}->output, undef, { force_no_caching => 1 };
58
  $pvar->{template}->output;
59
58
60
#-------------------------------------------------------------------------------
59
#-------------------------------------------------------------------------------
61
60
(-)a/opac/opac-suggestions.pl (-1 / +1 lines)
Lines 228-232 $template->param( Link Here
228
    patrons_pending_suggestions_count => $patrons_pending_suggestions_count,
228
    patrons_pending_suggestions_count => $patrons_pending_suggestions_count,
229
);
229
);
230
230
231
output_html_with_http_headers $input, $cookie, $template->output;
231
output_html_with_http_headers $input, $cookie, $template->output, undef, { force_no_caching => 1 };
232
232
(-)a/opac/svc/auth/googleopenidconnect (-2 / +1 lines)
Lines 86-92 sub loginfailed { Link Here
86
    );
86
    );
87
    $template->param( 'invalidGoogleOpenIDConnectLogin' => $reason );
87
    $template->param( 'invalidGoogleOpenIDConnectLogin' => $reason );
88
    $template->param( 'loginprompt'                     => 1 );
88
    $template->param( 'loginprompt'                     => 1 );
89
    output_html_with_http_headers $cgi_query, $cookie, $template->output;
89
    output_html_with_http_headers $cgi_query, $cookie, $template->output, undef, { force_no_caching => 1 };
90
    return;
90
    return;
91
}
91
}
92
92
93
- 

Return to bug 22542