]> git.pld-linux.org Git - packages/Pantomime.git/blame - Pantomime-whitespacepassword.patch
- up to CVS from 2004-07-29
[packages/Pantomime.git] / Pantomime-whitespacepassword.patch
CommitLineData
120ec7ed 1diff -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 }
24Only in Pantomime/Source: IMAPStore.m~
This page took 0.061502 seconds and 4 git commands to generate.