Attached is a fix for the options page (for version 1.2.11 -- are you also running 1.2.2?!?) that will strip out non-numeric characters. It is a replacement for /functions/options.php (and is part of SM version 1.4).
HTH, paul > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of David > Sent: Monday, March 17, 2003 12:59 PM > To: [EMAIL PROTECTED] > Subject: [SM-USERS] non-numeric show_num breaks SM > > > We had a user put 'All' for the number of messages to display (Options: > Display Preferences: Number of Messages to Index) which ends up in the > config file as show_num. This resulted in all the FETCH commands trying to > get an invalid range of messages (last -> last+1 ) and so vimap (based on > wu-imap) returned BAD. This caused SM to drop the imap session and display > an error message to the user. > I changed start_num to something numeric and the problem went away. > It should probably be validated in load_prefs.php before being used. > > php: 4.1.2 > sm: 1.2.2 and 1.2.11 > > cheers, > +david > > > > ------------------------------------------------------- > This SF.net email is sponsored by:Crypto Challenge is now open! > Get cracking and register here for some mind boggling fun and > the chance of winning an Apple iPod: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en > -- > squirrelmail-users mailing list > List Address: [EMAIL PROTECTED] > List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 > List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
options.php.tar.gz
Description: Binary data
