Handle malformed values. Detect non-existence MP file.
This commit is contained in:
parent
dfbdcc6403
commit
5afe199508
@ -64,7 +64,7 @@ public class Common
|
||||
public static string MICASA_PASSCODE_BY_MP_FILE = "/.miCASAPCByMPasswd";
|
||||
public static string MICASA_KEY_FILE = "/.miCASAKey";
|
||||
public static string MICASA_PERSISTENCE_FILE = "/.miCASA";
|
||||
public static string MICASA_VALIDATION_FILE = "/.miCASAValidate";
|
||||
public static string MICASA_VALIDATION_FILE = "/.miCASAValidateHash";
|
||||
|
||||
static Char[] SpecialCharacters = new Char[]{ '*', ':', '\'', '\\', '&', '=', '<', '>' };
|
||||
|
||||
|
@ -20,7 +20,8 @@
|
||||
*
|
||||
***********************************************************************/
|
||||
|
||||
namespace Novell.CASA.GUI {
|
||||
namespace Novell.CASA.GUI
|
||||
{
|
||||
|
||||
|
||||
using System;
|
||||
@ -329,6 +330,8 @@ public class MiCasa : Store
|
||||
bool bHasLinks = false;
|
||||
|
||||
for (int i = 0; i < keys.Length; i++)
|
||||
{
|
||||
try
|
||||
{
|
||||
Secret secret = ss.GetSecret(selected);
|
||||
|
||||
@ -364,6 +367,11 @@ public class MiCasa : Store
|
||||
dtModified.ToShortDateString() + " " + dtModified.ToShortTimeString());
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Logger.DbgLog(e.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user