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

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

Return to bug 37018