Skip to content

Commit

Permalink
fixed title for hardcoded IP address rule
Browse files Browse the repository at this point in the history
  • Loading branch information
mareknovotny committed May 19, 2017
1 parent 228a044 commit a15779a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -77,7 +77,7 @@ public void perform(GraphRewrite event, EvaluationContext context, FileLocationM
HardcodedIPLocationModel location = GraphService.addTypeToModel(event.getGraphContext(), payload,
HardcodedIPLocationModel.class);
location.setRuleID(((Rule) context.get(Rule.class)).getId());
location.setTitle("Hard-coded IP Address");
location.setTitle("Hard-coded IP address");

StringBuilder hintBody = new StringBuilder("**Hard-coded IP: ");
hintBody.append(payload.getSourceSnippit());
Expand Down
Expand Up @@ -100,7 +100,7 @@ public void testStaticIPScanner() throws IOException, InstantiationException, Il
int numberFound = 0;
for (InlineHintModel hint : service.findAll())
{
if (StringUtils.equals("Hard-coded IP Address", hint.getTitle()))
if (StringUtils.equals("Hard-coded IP address", hint.getTitle()))
{
Matcher matcher = ipExtractor.matcher(hint.getHint());
if (matcher.find())
Expand Down

0 comments on commit a15779a

Please sign in to comment.