1
0
Fork 0
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:
nishiki 2013-08-31 22:10:29 +02:00
parent c5ec87dc74
commit c412aae362

8
MPW.rb
View file

@ -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'))