Skip to content
Snippets Groups Projects
Commit ee77b930 authored by APriestman's avatar APriestman
Browse files

Convert MD5 hash to lowercase before database query.

parent b5ebf29c
No related branches found
No related tags found
No related merge requests found
...@@ -171,7 +171,7 @@ public synchronized ObservableResult evaluate() { ...@@ -171,7 +171,7 @@ public synchronized ObservableResult evaluate() {
for (HashType h : obj.getHashes().getHashes()) { for (HashType h : obj.getHashes().getHashes()) {
if (h.getSimpleHashValue() != null) { if (h.getSimpleHashValue() != null) {
if (h.getType().getValue().equals("MD5")) { //NON-NLS if (h.getType().getValue().equals("MD5")) { //NON-NLS
String newClause = "md5=\'" + h.getSimpleHashValue().getValue() + "\'"; //NON-NLS String newClause = "md5=\'" + h.getSimpleHashValue().getValue().toString().toLowerCase() + "\'"; //NON-NLS
whereClause = addClause(whereClause, newClause); whereClause = addClause(whereClause, newClause);
} else { } else {
addWarning("Could not process hash type " + h.getType().getValue().toString()); //NON-NLS addWarning("Could not process hash type " + h.getType().getValue().toString()); //NON-NLS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment