This commit is contained in:
nick n
2019-08-17 10:35:57 +02:00
committed by GitHub
parent 22cb988a8f
commit 131d80c95e

View File

@@ -31,7 +31,7 @@ get '/ajax/content/device/ports' => require_login sub {
# change wildcard chars to SQL # change wildcard chars to SQL
$f =~ s/\*/%/g; $f =~ s/\*/%/g;
$f =~ s/\?/_/g; $f =~ s/\?/_/g;
# set wilcards at param boundaries # set wildcards at param boundaries
if ($f !~ m/[%_]/) { if ($f !~ m/[%_]/) {
$f =~ s/^\%*/%/; $f =~ s/^\%*/%/;
$f =~ s/\%*$/%/; $f =~ s/\%*$/%/;