This commit is contained in:
		| @@ -304,7 +304,7 @@ public class Firefox : Store | |||||||
| 			 | 			 | ||||||
| 			if( false == entrySecretID.Editable ) | 			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) ) | 				if(  Common.STATUS_SUCCESS == StoreDataInterface.UpdateStore(Common.STORE_FIREFOX, Common.OPERATION_MODIFY_KEY, KeyName, args.NewText, ref model, ref iter) ) | ||||||
| 				{ | 				{ | ||||||
| @@ -330,11 +330,6 @@ public class Firefox : Store | |||||||
| 				else | 				else | ||||||
| 					Logger.DbgLog("GUI:Firefox.OnKeyValueEdited() - ERROR: STATUS_STORE_UPDATEFAILED"); | 					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) ) | 			else if( (Common.MAX_LEN >= args.NewText.Length) ) | ||||||
| 			{ | 			{ | ||||||
|   | |||||||
| @@ -339,7 +339,7 @@ public class GnomeKeyring : Store | |||||||
| 			 | 			 | ||||||
| 			if( false == entrySecretID.Editable ) | 			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) ) | 				if(  Common.STATUS_SUCCESS == StoreDataInterface.UpdateStore(Common.STORE_GNOMEKEYRING, Common.OPERATION_MODIFY_KEY, KeyName, args.NewText, ref model, ref iter) ) | ||||||
| 				{ | 				{ | ||||||
| @@ -365,11 +365,6 @@ public class GnomeKeyring : Store | |||||||
| 				else | 				else | ||||||
| 					Logger.DbgLog("GUI:GnomeKeyring.OnKeyValueEdited() - ERROR: STATUS_STORE_UPDATEFAILED"); | 					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) ) | 			else if( (Common.MAX_LEN >= args.NewText.Length) ) | ||||||
| 			{ | 			{ | ||||||
| @@ -417,7 +412,7 @@ public class GnomeKeyring : Store | |||||||
| 				while( tsKeyValue.IterNext(ref iterKey) ); | 				while( tsKeyValue.IterNext(ref iterKey) ); | ||||||
| 			}		 | 			}		 | ||||||
| 			if( -1 == arrKeys.IndexOf(entryKey.Text) ) | 			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"); | 				iterKey = tsKeyValue.AppendValues(entryKey.Text, entryValue.Text, "********", true, "No"); | ||||||
| 				entryKey.Text = entryValue.Text = "";				 | 				entryKey.Text = entryValue.Text = "";				 | ||||||
|   | |||||||
| @@ -339,7 +339,7 @@ public class KdeWallet : Store | |||||||
| 			 | 			 | ||||||
| 			if( false == entrySecretID.Editable ) | 			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) ) | 				if(  Common.STATUS_SUCCESS == StoreDataInterface.UpdateStore(Common.STORE_KDEWALLET, Common.OPERATION_MODIFY_KEY, KeyName, args.NewText, ref model, ref iter) ) | ||||||
| 				{ | 				{ | ||||||
| @@ -365,11 +365,6 @@ public class KdeWallet : Store | |||||||
| 				else | 				else | ||||||
| 					Logger.DbgLog("GUI:KdeWallet.OnKeyValueEdited() - ERROR: STATUS_STORE_UPDATEFAILED"); | 					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) ) | 			else if( (Common.MAX_LEN >= args.NewText.Length) ) | ||||||
| 			{ | 			{ | ||||||
| @@ -416,7 +411,7 @@ public class KdeWallet : Store | |||||||
| 				while( tsKeyValue.IterNext(ref iterKey) ); | 				while( tsKeyValue.IterNext(ref iterKey) ); | ||||||
| 			}		 | 			}		 | ||||||
| 			if( -1 == arrKeys.IndexOf(entryKey.Text) ) | 			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"); | 				iterKey = tsKeyValue.AppendValues(entryKey.Text, entryValue.Text, "********", true, "No"); | ||||||
| 				entryKey.Text = entryValue.Text = "";				 | 				entryKey.Text = entryValue.Text = "";				 | ||||||
|   | |||||||
| @@ -365,7 +365,7 @@ public class MiCasa : Store | |||||||
| 			 | 			 | ||||||
| 			if( false == entrySecretID.Editable ) | 			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) ) | 				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 | 				else | ||||||
| 					Logger.DbgLog("GUI:MiCasa.OnKeyValueEdited() - ERROR: STATUS_STORE_UPDATEFAILED"); | 					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) ) | 			else if( (Common.MAX_LEN >= args.NewText.Length) ) | ||||||
| 			{ | 			{ | ||||||
| @@ -443,7 +439,7 @@ public class MiCasa : Store | |||||||
| 				while( tsKeyValue.IterNext(ref iterKey) ); | 				while( tsKeyValue.IterNext(ref iterKey) ); | ||||||
| 			}		 | 			}		 | ||||||
| 			if( -1 == arrKeys.IndexOf(entryKey.Text) ) | 			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"); | 				iterKey = tsKeyValue.AppendValues(entryKey.Text, entryValue.Text, "********", true, "No"); | ||||||
| 				entryKey.Text = entryValue.Text = "";				 | 				entryKey.Text = entryValue.Text = "";				 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user