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

(-)a/Koha/REST/Plugin/Query.pm (-2 / +1 lines)
Lines 672-678 sub _rewrite_related_metadata_query { Link Here
672
672
673
sub _validate_operator {
673
sub _validate_operator {
674
    my ($operator) = @_;
674
    my ($operator) = @_;
675
    my %allowed_operators = map { $_ => 1 } qw(= != < > <= >= like -not_like -in -ident -bool -not_bool -or);
675
    my %allowed_operators = map { $_ => 1 } qw(= != < > <= >= like -not_like -in -ident -bool -not_bool -or -like -not -and -regexp);
676
    Koha::Exceptions::BadParameter->throw(
676
    Koha::Exceptions::BadParameter->throw(
677
                "Invalid operator in query: $operator") unless exists $allowed_operators{$operator};
677
                "Invalid operator in query: $operator") unless exists $allowed_operators{$operator};
678
    return;
678
    return;
679
- 

Return to bug 37018