不要怂,就是干,撸起袖子干!

Commit cbfaa4f0 by Mick Hansen

security(data-types): force non-buffer blob values to string, https://github.com…

…/nodejs/node/issues/4660
1 parent 9d99adc2
Showing with 1 additions and 1 deletions
......@@ -578,7 +578,7 @@ BLOB.prototype.validate = function(value) {
BLOB.prototype.escape = false;
BLOB.prototype.$stringify = function (value) {
if (!Buffer.isBuffer(value)) {
value = new Buffer(value);
value = new Buffer(value.toString());
}
var hex = value.toString('hex');
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!