]> git.pld-linux.org Git - packages/Pantomime.git/blob - Pantomime-whitespacepassword.patch
- R: openssl-devel in -devel, rel 5, STBR
[packages/Pantomime.git] / Pantomime-whitespacepassword.patch
1 diff -ur Pantomime-orig/Source/IMAPStore.m Pantomime/Source/IMAPStore.m
2 --- Pantomime-orig/Source/IMAPStore.m   2003-07-24 15:30:36.000000000 -0600
3 +++ Pantomime/Source/IMAPStore.m        2003-08-20 15:34:02.000000000 -0600
4 @@ -257,16 +257,16 @@
5                          password: (NSString*) thePassword
6  {
7    NSString *aPassword;
8 -  NSRange aRange;
9 -
10 +  NSRange aRange, aRange2;
11    // We first retain the username for future use
12    username = theUsername;
13    RETAIN(username);
14  
15    // We must verify if we must quote the password
16    aRange = [thePassword rangeOfCharacterFromSet: [NSCharacterSet punctuationCharacterSet]];
17 +  aRange2 = [thePassword rangeOfCharacterFromSet: [NSCharacterSet whitespaceCharacterSet]];
18    
19 -  if ( aRange.length )
20 +  if ( aRange.length || aRange2.length )
21      {
22        aPassword = [NSString stringWithFormat: @"\"%@\"", thePassword];
23      }
24 Only in Pantomime/Source: IMAPStore.m~
This page took 1.856056 seconds and 3 git commands to generate.