#809 fix crash in Node search due to regexp translation perl to SQL

This commit is contained in:
Oliver Gorwits
2021-09-08 20:39:50 +01:00
parent b38ceaaeeb
commit 3e6ec6883f
2 changed files with 6 additions and 2 deletions

View File

@@ -2,7 +2,11 @@
[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

View File

@@ -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} },