mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-20 01:50:04 +00:00
fix bug add group
This commit is contained in:
parent
c5ec87dc74
commit
c412aae362
1 changed files with 4 additions and 4 deletions
8
MPW.rb
8
MPW.rb
|
@ -225,10 +225,10 @@ class MPW
|
|||
id = 0
|
||||
end
|
||||
|
||||
row[ID] = id
|
||||
row[PORT] = port
|
||||
row[NAME] = name.force_encoding('ASCII-8BIT')
|
||||
group.nil? ? (row[GROUP] = nil) : (row[SERVER] = server.force_encoding('ASCII-8BIT'))
|
||||
row[ID] = id
|
||||
row[PORT] = port
|
||||
row[NAME] = name.force_encoding('ASCII-8BIT')
|
||||
row[GROUP] = group.force_encoding('ASCII-8BIT')
|
||||
server.nil? ? (row[SERVER] = nil) : (row[SERVER] = server.force_encoding('ASCII-8BIT'))
|
||||
protocol.nil? ? (row[PROTOCOL] = nil) : (row[PROTOCOL] = protocol.force_encoding('ASCII-8BIT'))
|
||||
login.nil? ? (row[LOGIN] = nil) : (row[LOGIN] = login.force_encoding('ASCII-8BIT'))
|
||||
|
|
Loading…
Add table
Reference in a new issue