/[projects]/dao/DaoMqPump2/DaoCommon/Salt2Helper.cs
ViewVC logotype

Diff of /dao/DaoMqPump2/DaoCommon/Salt2Helper.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2170 by torben, Fri May 16 21:26:01 2014 UTC revision 2172 by torben, Sat May 17 10:53:58 2014 UTC
# Line 23  namespace DaoCommon Line 23  namespace DaoCommon
23              header.modtager = salt2String.Substring(5, 5);              header.modtager = salt2String.Substring(5, 5);
24              header.transaktionForkortelse = salt2String.Substring(55, 4);              header.transaktionForkortelse = salt2String.Substring(55, 4);
25    
26    
27                header.transaktionForkortelse = header.transaktionForkortelse.Trim();
28    
29              return header;              return header;
30          }          }
31    
32    
33          public static bool validateSalt2Header(string salt2String)          public static bool validateSalt2Header(string salt2String)
34          {          {
35                if (salt2String.StartsWith("?"))
36                {
37                    //addLogEntry("Illegal start character - discarding");
38                    return false;
39                }
40    
41              if (salt2String.Length < 66)              if (salt2String.Length < 66)
42              {              {
43                  //addLogEntry("Transaction too short - discarding");                  //addLogEntry("Transaction too short - discarding");

Legend:
Removed from v.2170  
changed lines
  Added in v.2172

  ViewVC Help
Powered by ViewVC 1.1.20