sub redirect_auth {
my $self = shift;
my $login_page = sprintf('%s://%s%s/login',($self->ctx->{is_staff} ? 'oils' : 'https'), $self->ctx->{hostname}, $self->ctx->{opac_root});
- my $redirect_to = uri_escape($self->apache->unparsed_uri);
+ my $redirect_to = uri_escape_utf8($self->apache->unparsed_uri);
return $self->generic_redirect("$login_page?redirect_to=$redirect_to");
}
$url = $self->ctx->{proto} . '://' . $self->ctx->{hostname} . $self->ctx->{opac_root} . '/myopac/holds';
foreach my $param (('loc', 'qtype', 'query')) {
if ($self->cgi->param($param)) {
- $url .= ";$param=" . uri_escape($self->cgi->param($param));
+ $url .= ";$param=" . uri_escape_utf8($self->cgi->param($param));
}
}
}
foreach my $param (('loc', 'qtype', 'query', 'sort', 'offset', 'limit')) {
if ($self->cgi->param($param)) {
- $url .= ";$param=" . uri_escape($self->cgi->param($param));
+ $url .= ";$param=" . uri_escape_utf8($self->cgi->param($param));
}
}
foreach my $param (('loc', 'qtype', 'query', 'sort')) {
if ($cgi->param($param)) {
- $url .= "$param=" . uri_escape($cgi->param($param)) . ";";
+ $url .= "$param=" . uri_escape_utf8($cgi->param($param)) . ";";
}
}
$url .= ';hold_target=' . $_ for @hold_recs;
foreach my $param (('loc', 'qtype', 'query')) {
if ($cgi->param($param)) {
- $url .= ";$param=" . uri_escape($cgi->param($param));
+ $url .= ";$param=" . uri_escape_utf8($cgi->param($param));
}
}
return $self->generic_redirect($url);
}
} elsif ($action eq 'save_notes') {
$success = $self->update_bookbag_item_notes;
- $url .= "&bbid=" . uri_escape($cgi->param("bbid")) if $cgi->param("bbid");
+ $url .= "&bbid=" . uri_escape_utf8($cgi->param("bbid")) if $cgi->param("bbid");
} elsif ($action eq 'make_default') {
$success = $U->simplereq(
'open-ils.actor',