Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit b85f78a3
authored
Jan 15, 2016
by
Mick Hansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: regression with blob array values from 3.17.2
1 parent
e67a9b3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
changelog.md
lib/data-types.js
changelog.md
View file @
b85f78a
# 3.17.3
-
[
FIXED
]
Regression with array values from security fix in 3.17.2
# 3.17.2
# 3.17.2
-
[
SECURITY
]
Force non-buffer blob values to string, https://github.com/nodejs/node/issues/4660
-
[
SECURITY
]
Force non-buffer blob values to string, https://github.com/nodejs/node/issues/4660
...
...
lib/data-types.js
View file @
b85f78a
...
@@ -578,7 +578,11 @@ BLOB.prototype.validate = function(value) {
...
@@ -578,7 +578,11 @@ BLOB.prototype.validate = function(value) {
BLOB
.
prototype
.
escape
=
false
;
BLOB
.
prototype
.
escape
=
false
;
BLOB
.
prototype
.
$stringify
=
function
(
value
)
{
BLOB
.
prototype
.
$stringify
=
function
(
value
)
{
if
(
!
Buffer
.
isBuffer
(
value
))
{
if
(
!
Buffer
.
isBuffer
(
value
))
{
value
=
new
Buffer
(
value
.
toString
());
if
(
Array
.
isArray
(
value
))
{
value
=
new
Buffer
(
value
);
}
else
{
value
=
new
Buffer
(
value
.
toString
());
}
}
}
var
hex
=
value
.
toString
(
'hex'
);
var
hex
=
value
.
toString
(
'hex'
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment