Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion database.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ exports.clientHistory = function( ipAddress, strict, callback )
strictQuery = "AND ( `response` = '200' OR `response` = '201' )";
}

var query = "SELECT `timestamp` FROM `" + tables.INSERT_LOG + "` WHERE `ip_address` = '" + jsesc(ipAddress) + "'" + jsesc(strictQuery) + " AND `timestamp` > DATE_SUB( NOW(), INTERVAL 24 HOUR)";
var query = "SELECT `timestamp` FROM `" + tables.INSERT_LOG + "` WHERE `ip_address` = '" + jsesc(ipAddress) + "'" + strictQuery + " AND `timestamp` > DATE_SUB( NOW(), INTERVAL 24 HOUR)";

// setup object to be returned via the callback
var history = { day : 0, hour: 0, minute: 0 };
Expand Down