1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2025-02-22 10:50:10 +00:00

fix bug add group

This commit is contained in:
nishiki 2013-08-31 22:10:29 +02:00
parent c5ec87dc74
commit c412aae362

2
MPW.rb
View file

@ -228,7 +228,7 @@ class MPW
row[ID] = id row[ID] = id
row[PORT] = port row[PORT] = port
row[NAME] = name.force_encoding('ASCII-8BIT') row[NAME] = name.force_encoding('ASCII-8BIT')
group.nil? ? (row[GROUP] = nil) : (row[SERVER] = server.force_encoding('ASCII-8BIT')) row[GROUP] = group.force_encoding('ASCII-8BIT')
server.nil? ? (row[SERVER] = nil) : (row[SERVER] = server.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')) protocol.nil? ? (row[PROTOCOL] = nil) : (row[PROTOCOL] = protocol.force_encoding('ASCII-8BIT'))
login.nil? ? (row[LOGIN] = nil) : (row[LOGIN] = login.force_encoding('ASCII-8BIT')) login.nil? ? (row[LOGIN] = nil) : (row[LOGIN] = login.force_encoding('ASCII-8BIT'))