Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Include 64 as valid id length for sha256 use
Browse files Browse the repository at this point in the history
  • Loading branch information
Braydon Fuller committed Feb 14, 2017
1 parent 454a73a commit 119b9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/models/bucketentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ BucketEntry.statics.create = function(data, callback) {

let id = null;
if (data.id) {
if (data.id.length < 64 && utils.isHexaString(data.id)) {
if (data.id.length <= 64 && utils.isHexaString(data.id)) {
id = data.id;
} else {
return callback(new errors.BadRequestError('Invalid id supplied'));
Expand Down

0 comments on commit 119b9df

Please sign in to comment.