#809 fix crash in Node search due to regexp translation perl to SQL
This commit is contained in:
6
Changes
6
Changes
@@ -2,7 +2,11 @@
|
|||||||
|
|
||||||
[ENHANCEMENTS]
|
[ENHANCEMENTS]
|
||||||
|
|
||||||
* Change duplicate job status from 'error' to 'info'
|
* #811 change duplicate job status from 'error' to 'info'
|
||||||
|
|
||||||
|
[BUG FIXES
|
||||||
|
|
||||||
|
* #809 fix crash in Node search due to regexp translation perl to SQL
|
||||||
|
|
||||||
2.049004 - 2021-09-03
|
2.049004 - 2021-09-03
|
||||||
|
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ sub search_by_dns {
|
|||||||
if ref {} ne ref $cond or !exists $cond->{dns};
|
if ref {} ne ref $cond or !exists $cond->{dns};
|
||||||
|
|
||||||
(my $suffix = (delete $cond->{suffix} || ''))
|
(my $suffix = (delete $cond->{suffix} || ''))
|
||||||
=~ s|\Q(?^\Eu?|(?|g;
|
=~ s|\Q(?^\E[-xismu]*|(?|g;
|
||||||
|
|
||||||
$cond->{dns} = [ -and =>
|
$cond->{dns} = [ -and =>
|
||||||
{ '-ilike' => delete $cond->{dns} },
|
{ '-ilike' => delete $cond->{dns} },
|
||||||
|
|||||||
Reference in New Issue
Block a user