]> git.pld-linux.org Git - packages/Pantomime.git/commitdiff
- fixes bug when passwords have whitespace
authoraredridel <aredridel@pld-linux.org>
Wed, 27 Aug 2003 22:34:20 +0000 (22:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Pantomime-whitespacepassword.patch -> 1.1

Pantomime-whitespacepassword.patch [new file with mode: 0644]

diff --git a/Pantomime-whitespacepassword.patch b/Pantomime-whitespacepassword.patch
new file mode 100644 (file)
index 0000000..4e1902c
--- /dev/null
@@ -0,0 +1,24 @@
+diff -ur Pantomime-orig/Source/IMAPStore.m Pantomime/Source/IMAPStore.m
+--- Pantomime-orig/Source/IMAPStore.m  2003-07-24 15:30:36.000000000 -0600
++++ Pantomime/Source/IMAPStore.m       2003-08-20 15:34:02.000000000 -0600
+@@ -257,16 +257,16 @@
+                        password: (NSString*) thePassword
+ {
+   NSString *aPassword;
+-  NSRange aRange;
+-
++  NSRange aRange, aRange2;
+   // We first retain the username for future use
+   username = theUsername;
+   RETAIN(username);
+   // We must verify if we must quote the password
+   aRange = [thePassword rangeOfCharacterFromSet: [NSCharacterSet punctuationCharacterSet]];
++  aRange2 = [thePassword rangeOfCharacterFromSet: [NSCharacterSet whitespaceCharacterSet]];
+   
+-  if ( aRange.length )
++  if ( aRange.length || aRange2.length )
+     {
+       aPassword = [NSString stringWithFormat: @"\"%@\"", thePassword];
+     }
+Only in Pantomime/Source: IMAPStore.m~
This page took 0.083218 seconds and 4 git commands to generate.