Convert MD5 hash to lowercase before database query.

This commit is contained in:
APriestman 2015-03-13 09:21:52 -04:00
parent b5ebf29cc5
commit ee77b930cf

View File

@ -171,7 +171,7 @@ class EvalFileObj extends EvaluatableObject {
for (HashType h : obj.getHashes().getHashes()) {
if (h.getSimpleHashValue() != null) {
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);
} else {
addWarning("Could not process hash type " + h.getType().getValue().toString()); //NON-NLS