Fix escaping in WildcardHostMatcher (#382)

* Escape '[' and ']' in WildcardHostMatcher

* Anchoring regex to match entire string (Fixes #381)
This commit is contained in:
Jeroen van Erp
2017-11-13 15:49:48 +01:00
committed by GitHub
parent d2e0f50d0c
commit a71a7d7d33
3 changed files with 7 additions and 2 deletions

View File

@@ -360,7 +360,7 @@ public class OpenSSHKnownHosts
}
protected String getHostPart() {
return hostPart;
return hostPart;
}
}