#809 fix crash in Node search due to regexp translation perl to SQL
This commit is contained in:
@@ -151,7 +151,7 @@ sub search_by_dns {
|
||||
if ref {} ne ref $cond or !exists $cond->{dns};
|
||||
|
||||
(my $suffix = (delete $cond->{suffix} || ''))
|
||||
=~ s|\Q(?^\Eu?|(?|g;
|
||||
=~ s|\Q(?^\E[-xismu]*|(?|g;
|
||||
|
||||
$cond->{dns} = [ -and =>
|
||||
{ '-ilike' => delete $cond->{dns} },
|
||||
|
||||
Reference in New Issue
Block a user