Issue845560
Created on 2003-11-20 04:01 by anadelonbrin, last changed 2009-04-22 17:20 by ajaksu2.
| File name |
Uploaded |
Description |
Edit |
Remove |
|
imaplib.diff
|
anadelonbrin,
2003-11-20 04:01
|
Patch for the _checkquote function in imaplib.py. |
|
|
|
msg19046 - (view) |
Author: Tony Meyer (anadelonbrin) |
Date: 2003-11-20 04:01 |
|
Python 2.3.2 and also 18/11/03 CVS; Windows XP.
If _checkquote is passed the empty string, it raises and
exception (because it tries to get an index into the
string). The easiest way to reproduce this is:
>>> import imaplib
>>> i = imaplib.IMAP4('server.name')
>>> i.login("username", "password")
>>> i.select("")
[Traceback here]
While it's unlikely that there's a folder called "", this
should really give the 'invalid folder name' error, rather
than an exception.
The attached diff fixes this, simply by checking for the
empty string in _checkquote.
|
|
| Date |
User |
Action |
Args |
| 2009-04-22 17:20:18 | ajaksu2 | set | keywords:
+ patch, easy |
| 2009-02-13 05:01:34 | ajaksu2 | set | stage: test needed type: behavior versions:
+ Python 2.6, - Python 2.3 |
| 2003-11-20 04:01:01 | anadelonbrin | create | |
|