Skip to content

Commit

Permalink
fix(php/unserialize): data type to lowercase
Browse files Browse the repository at this point in the history
this catches the common capitalized N for nulls
  • Loading branch information
JosephThies committed Sep 18, 2020
1 parent 9b74016 commit 210a91c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/php/var/unserialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ module.exports = function unserialize (data) {
if (!offset) {
offset = 0
}
dtype = (data.slice(offset, offset + 1))
dtype = (data.slice(offset, offset + 1)).toLowerCase()

dataoffset = offset + 2

Expand Down

0 comments on commit 210a91c

Please sign in to comment.