This commit is contained in:
parent
565814baf8
commit
cc583ead26
@ -304,7 +304,7 @@ public class Firefox : Store
|
||||
|
||||
if( false == entrySecretID.Editable )
|
||||
{
|
||||
if( ("" != args.NewText) && (Common.MAX_LEN >= args.NewText.Length) && (KeyValue != args.NewText) && true == Common.ValidateString(args.NewText) )
|
||||
if( ("" != args.NewText) && (Common.MAX_LEN >= args.NewText.Length) && (KeyValue != args.NewText) )
|
||||
{
|
||||
if( Common.STATUS_SUCCESS == StoreDataInterface.UpdateStore(Common.STORE_FIREFOX, Common.OPERATION_MODIFY_KEY, KeyName, args.NewText, ref model, ref iter) )
|
||||
{
|
||||
@ -329,12 +329,7 @@ public class Firefox : Store
|
||||
}
|
||||
else
|
||||
Logger.DbgLog("GUI:Firefox.OnKeyValueEdited() - ERROR: STATUS_STORE_UPDATEFAILED");
|
||||
}
|
||||
else if( false == Common.ValidateString(args.NewText) )
|
||||
{
|
||||
Glade.XML gxmlTemp = new Glade.XML (Common.GladeFile, "dialogSpecialCharacter", null);
|
||||
gxmlTemp.Autoconnect (this);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if( (Common.MAX_LEN >= args.NewText.Length) )
|
||||
{
|
||||
|
@ -339,7 +339,7 @@ public class GnomeKeyring : Store
|
||||
|
||||
if( false == entrySecretID.Editable )
|
||||
{
|
||||
if( ("" != args.NewText) && (Common.MAX_LEN >= args.NewText.Length) && (KeyValue != args.NewText) && true == Common.ValidateString(args.NewText) )
|
||||
if( ("" != args.NewText) && (Common.MAX_LEN >= args.NewText.Length) && (KeyValue != args.NewText) )
|
||||
{
|
||||
if( Common.STATUS_SUCCESS == StoreDataInterface.UpdateStore(Common.STORE_GNOMEKEYRING, Common.OPERATION_MODIFY_KEY, KeyName, args.NewText, ref model, ref iter) )
|
||||
{
|
||||
@ -364,12 +364,7 @@ public class GnomeKeyring : Store
|
||||
}
|
||||
else
|
||||
Logger.DbgLog("GUI:GnomeKeyring.OnKeyValueEdited() - ERROR: STATUS_STORE_UPDATEFAILED");
|
||||
}
|
||||
else if( false == Common.ValidateString(args.NewText) )
|
||||
{
|
||||
Glade.XML gxmlTemp = new Glade.XML (Common.GladeFile, "dialogSpecialCharacter", null);
|
||||
gxmlTemp.Autoconnect (this);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if( (Common.MAX_LEN >= args.NewText.Length) )
|
||||
{
|
||||
@ -417,7 +412,7 @@ public class GnomeKeyring : Store
|
||||
while( tsKeyValue.IterNext(ref iterKey) );
|
||||
}
|
||||
if( -1 == arrKeys.IndexOf(entryKey.Text) )
|
||||
if( true == Common.ValidateString(entryKey.Text) && true == Common.ValidateString(entryValue.Text) )
|
||||
if( true == Common.ValidateString(entryKey.Text) )
|
||||
{
|
||||
iterKey = tsKeyValue.AppendValues(entryKey.Text, entryValue.Text, "********", true, "No");
|
||||
entryKey.Text = entryValue.Text = "";
|
||||
|
@ -339,7 +339,7 @@ public class KdeWallet : Store
|
||||
|
||||
if( false == entrySecretID.Editable )
|
||||
{
|
||||
if( ("" != args.NewText) && (Common.MAX_LEN >= args.NewText.Length) && (KeyValue != args.NewText) && true == Common.ValidateString(args.NewText) )
|
||||
if( ("" != args.NewText) && (Common.MAX_LEN >= args.NewText.Length) && (KeyValue != args.NewText) )
|
||||
{
|
||||
if( Common.STATUS_SUCCESS == StoreDataInterface.UpdateStore(Common.STORE_KDEWALLET, Common.OPERATION_MODIFY_KEY, KeyName, args.NewText, ref model, ref iter) )
|
||||
{
|
||||
@ -364,12 +364,7 @@ public class KdeWallet : Store
|
||||
}
|
||||
else
|
||||
Logger.DbgLog("GUI:KdeWallet.OnKeyValueEdited() - ERROR: STATUS_STORE_UPDATEFAILED");
|
||||
}
|
||||
else if( false == Common.ValidateString(args.NewText) )
|
||||
{
|
||||
Glade.XML gxmlTemp = new Glade.XML (Common.GladeFile, "dialogSpecialCharacter", null);
|
||||
gxmlTemp.Autoconnect (this);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if( (Common.MAX_LEN >= args.NewText.Length) )
|
||||
{
|
||||
@ -416,7 +411,7 @@ public class KdeWallet : Store
|
||||
while( tsKeyValue.IterNext(ref iterKey) );
|
||||
}
|
||||
if( -1 == arrKeys.IndexOf(entryKey.Text) )
|
||||
if( true == Common.ValidateString(entryKey.Text) && true == Common.ValidateString(entryValue.Text) )
|
||||
if( true == Common.ValidateString(entryKey.Text) )
|
||||
{
|
||||
iterKey = tsKeyValue.AppendValues(entryKey.Text, entryValue.Text, "********", true, "No");
|
||||
entryKey.Text = entryValue.Text = "";
|
||||
|
@ -365,7 +365,7 @@ public class MiCasa : Store
|
||||
|
||||
if( false == entrySecretID.Editable )
|
||||
{
|
||||
if( ("" != args.NewText) && (Common.MAX_LEN >= args.NewText.Length) && (KeyValue != args.NewText) && true == Common.ValidateString(args.NewText) )
|
||||
if( ("" != args.NewText) && (Common.MAX_LEN >= args.NewText.Length) && (KeyValue != args.NewText) )
|
||||
{
|
||||
if( Common.STATUS_SUCCESS == StoreDataInterface.UpdateStore(Common.STORE_MICASA, Common.OPERATION_MODIFY_KEY, KeyName, args.NewText, ref model, ref iter) )
|
||||
{
|
||||
@ -391,11 +391,7 @@ public class MiCasa : Store
|
||||
else
|
||||
Logger.DbgLog("GUI:MiCasa.OnKeyValueEdited() - ERROR: STATUS_STORE_UPDATEFAILED");
|
||||
}
|
||||
else if( false == Common.ValidateString(args.NewText) )
|
||||
{
|
||||
Glade.XML gxmlTemp = new Glade.XML (Common.GladeFile, "dialogSpecialCharacter", null);
|
||||
gxmlTemp.Autoconnect (this);
|
||||
}
|
||||
|
||||
}
|
||||
else if( (Common.MAX_LEN >= args.NewText.Length) )
|
||||
{
|
||||
@ -443,7 +439,7 @@ public class MiCasa : Store
|
||||
while( tsKeyValue.IterNext(ref iterKey) );
|
||||
}
|
||||
if( -1 == arrKeys.IndexOf(entryKey.Text) )
|
||||
if( true == Common.ValidateString(entryKey.Text) && true == Common.ValidateString(entryValue.Text) )
|
||||
if( true == Common.ValidateString(entryKey.Text) )
|
||||
{
|
||||
iterKey = tsKeyValue.AppendValues(entryKey.Text, entryValue.Text, "********", true, "No");
|
||||
entryKey.Text = entryValue.Text = "";
|
||||
|
Loading…
Reference in New Issue
Block a user