/[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 2171 by torben, Fri May 16 21:50:17 2014 UTC revision 2174 by torben, Sat May 17 11:25:26 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                header.afsender = header.afsender.Trim().ToUpper();
27              header.transaktionForkortelse = header.transaktionForkortelse.Trim();              header.modtager = header.modtager.Trim().ToUpper();
28                header.transaktionForkortelse = header.transaktionForkortelse.Trim().ToUpper();
29    
30              return header;              return header;
31          }          }
# Line 32  namespace DaoCommon Line 33  namespace DaoCommon
33    
34          public static bool validateSalt2Header(string salt2String)          public static bool validateSalt2Header(string salt2String)
35          {          {
36                if (salt2String.StartsWith("?"))
37                {
38                    //addLogEntry("Illegal start character - discarding");
39                    return false;
40                }
41    
42              if (salt2String.Length < 66)              if (salt2String.Length < 66)
43              {              {
44                  //addLogEntry("Transaction too short - discarding");                  //addLogEntry("Transaction too short - discarding");

Legend:
Removed from v.2171  
changed lines
  Added in v.2174

  ViewVC Help
Powered by ViewVC 1.1.20