mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-08-28 21:06:39 -04:00
Better sanitize user input in inputInt
This commit is contained in:
+1
-1
@@ -82,7 +82,7 @@ func GenUpdate(targetLocation string, hidePassword bool) {
|
||||
unencryptedEntry := offline.DecryptGPG(targetLocation)
|
||||
|
||||
// generate a new password
|
||||
unencryptedEntry[0] = offline.StringGen(inputInt("Password length:"), inputBinary("Generate a complex (special characters) password?"), 0.2)
|
||||
unencryptedEntry[0] = offline.StringGen(inputInt("Password length:", -1), inputBinary("Generate a complex (special characters) password?"), 0.2)
|
||||
|
||||
// write and preview the modified entry
|
||||
writeEntryShortcut(targetLocation, unencryptedEntry, hidePassword)
|
||||
|
||||
Reference in New Issue
Block a user