Ignore:
Timestamp:
Feb 23, 2010, 7:42:55 PM (12 years ago)
Author:
arnold
Message:

some bug fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/PeerToPeerManager_NEW/P2PManager_KeyPattern.cs

    r1170 r1173  
    260260                        entry.Value = "" + Math.Round(listNode.Value.value, 3);
    261261                        entry.Key = listNode.Value.key;
    262                         entry.Text = enc.GetString(listNode.Value.decryption, 0, this.bytesToUseForDecryption);
     262                        // remove all linebreaks, tabs and so on
     263                        string decryptText = enc.GetString(listNode.Value.decryption, 0, this.bytesToUseForDecryption);
     264                        decryptText = decryptText.Replace("\n", String.Empty);
     265                        decryptText = decryptText.Replace("\t", String.Empty);
     266                        decryptText = decryptText.Replace("\r", String.Empty);
     267                        entry.Text = decryptText;//enc.GetString(listNode.Value.decryption, 0, this.bytesToUseForDecryption);
    263268
    264269                        ((P2PManagerPresentation)QuickWatchPresentation).entries.Add(entry);
Note: See TracChangeset for help on using the changeset viewer.