Better check in SecretBox
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ export default class SecretBox {
|
||||
log.trace('fromString')
|
||||
|
||||
const parts = data.split('.')
|
||||
if (parts.length < 2) {
|
||||
if (parts.length !== 2) {
|
||||
log.warn('Invalid parts count')
|
||||
return null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user