6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/24/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#8996] accidental whitespace in username causing problems in session
*
Your Email Address
*
Spam protection
Enter the letters below:
.___..__ . ..__ . . _/ [__)|__|[__)| | ./__.| | || |__|
Comment
> We're seeing a problem if our users logging to IMP and accidentally > add whitespace in their username. Our Horde is configured to let IMP > handle authentication, and IMP is set to authenticate against Cyrus > IMAP. > > The authentication against the Cyrus IMAP server works just fine, but > any white space is added to the session information and ends up > looking like this: > > testmail @acd.ccac.edu [xxxxxxxxxxxxxxxxxxxxxxxxxxxxx] > Session Timestamp: Thu, 29 Apr 2010 14:12:14 -0400 > Browser: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) > Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729) > Realm: [None] > Remote Host: xyz.ccac.edu [xxx.xxx.xxx.xxx] > > This causes a few problems, the biggest of which is that the user > cannot send email (see attached image). The username also doesn't > line up properly with the preferences stored in the MySQL database. > > I notice that if I go into redirect.php and change this: > > IMP_Session::createSession($imapuser, $pass, $sessArray['server'], > $sessArray) > > to this: > > IMP_Session::createSession(trim($imapuser), $pass, > $sessArray['server'], $sessArray) > > The problem seems to disappear. But that probably isn't the recommended fix.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers