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

(-)a/Koha/UI/Form/Builder/Biblio.pm (-1 / +3 lines)
Lines 49-55 sub new { Link Here
49
    my ( $class, $params ) = @_;
49
    my ( $class, $params ) = @_;
50
50
51
    my $self = {};
51
    my $self = {};
52
    $self->{biblionumber} = $params->{biblionumber};
52
53
    $self->{biblionumber} = $params->{biblionumber} =~ s/\D//gr;
54
    # just in case biblionumber obtained from CGI and passed directly here contains a weird characters like space
53
55
54
    bless $self, $class;
56
    bless $self, $class;
55
    return $self;
57
    return $self;
(-)a/cataloguing/addbiblio.pl (-1 / +2 lines)
Lines 547-552 if ($biblionumber) { Link Here
547
547
548
    $biblio = Koha::Biblios->find($biblionumber);
548
    $biblio = Koha::Biblios->find($biblionumber);
549
549
550
    # just in case $biblionumber obtained from CGI contains a weird characters like space
551
    $biblionumber = $biblio->biblionumber if $biblio;
550
    if ($biblio) {
552
    if ($biblio) {
551
        unless ( $biblio->can_be_edited($logged_in_patron) ) {
553
        unless ( $biblio->can_be_edited($logged_in_patron) ) {
552
            print $input->redirect("/cgi-bin/koha/errors/403.pl");    # escape early
554
            print $input->redirect("/cgi-bin/koha/errors/403.pl");    # escape early
553
- 

Return to bug 36794