#382 invaid regexp syntax

This commit is contained in:
Oliver Gorwits
2018-03-20 10:10:41 +00:00
parent 9aa43616bb
commit 7529a93501
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2.039017 - 2018-03-20
[BUG FIXES]
* #382 invaid regexp syntax
2.039016 - 2018-03-19 2.039016 - 2018-03-19
[NEW FEATURES] [NEW FEATURES]

View File

@@ -247,7 +247,7 @@ sub store_neighbors {
$remote_port = $c_port->{$entry}; $remote_port = $c_port->{$entry};
if (defined $remote_port) { if (defined $remote_port) {
# clean weird characters # clean weird characters
$remote_port =~ s/[^\d\/\.,()\w:- ]+//gi; $remote_port =~ s/[^\d\s\/\.,()\w:-]+//gi;
} }
else { else {
info sprintf ' [%s] neigh - no remote port found for port %s at %s', info sprintf ' [%s] neigh - no remote port found for port %s at %s',