Skip to content

Commit c71d3c8

Browse files
authored
Merge pull request yvasiyarov#20 from tabacco/typo-fix
Fix const name spelling
2 parents 16ce1f6 + ffe721d commit c71d3c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

php_serialize/unserialize.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99
)
1010

11-
const UNSERIAZABLE_OBJECT_MAX_LEN = 10 * 1024 * 1024 * 1024
11+
const UNSERIALIZABLE_OBJECT_MAX_LEN = 10 * 1024 * 1024 * 1024
1212

1313
func UnSerialize(s string) (PhpValue, error) {
1414
decoder := NewUnSerializer(s)
@@ -263,8 +263,8 @@ func (self *UnSerializer) readLen() int {
263263
} else {
264264
if val, err = strconv.Atoi(raw); err != nil {
265265
self.saveError(fmt.Errorf("php_serialize: Unable to convert %s to int: %v", raw, err))
266-
} else if val > UNSERIAZABLE_OBJECT_MAX_LEN {
267-
self.saveError(fmt.Errorf("php_serialize: Unserializable object length looks too big(%d). If you are sure you wanna unserialise it, please increase UNSERIAZABLE_OBJECT_MAX_LEN const", val, err))
266+
} else if val > UNSERIALIZABLE_OBJECT_MAX_LEN {
267+
self.saveError(fmt.Errorf("php_serialize: Unserializable object length looks too big(%d). If you are sure you wanna unserialise it, please increase UNSERIALIZABLE_OBJECT_MAX_LEN const", val, err))
268268
val = 0
269269
}
270270
}

0 commit comments

Comments
 (0)