convert uuid params to lower case, store only lower case uuids

This commit is contained in:
jomo
2014-12-08 21:57:37 +01:00
parent cd7830242e
commit e726fb9d5f
3 changed files with 4 additions and 2 deletions

View File

@@ -67,6 +67,8 @@ exp.update_timestamp = function(uuid, hash) {
exp.save_hash = function(uuid, hash) {
logging.log(uuid + " cache: saving hash");
var time = new Date().getTime();
// store uuid in lower case if not null
uuid = uuid && uuid.toLowerCase();
redis.hmset(uuid, "h", hash, "t", time);
};