[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-cvs
Subject:    [SM-CVS] CVS: squirrelmail/functions imap_asearch.php,1.24,1.25
From:       Alex Lemaresquier <alex-brainstorm () users ! sourceforge ! net>
Date:       2004-04-30 23:18:20
Message-ID: E1BJhGu-0000UA-V2 () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/squirrelmail/squirrelmail/functions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1846

Modified Files:
	imap_asearch.php 
Log Message:
Be smarter with PHP numerical conversion, who knows if the previous code wouldn't fail on some version

Index: imap_asearch.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/functions/imap_asearch.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -w -r1.24 -r1.25
--- imap_asearch.php	30 Apr 2004 22:54:10 -0000	1.24
+++ imap_asearch.php	30 Apr 2004 23:18:18 -0000	1.25
@@ -274,13 +274,13 @@
 			if ($what != '') {
 				switch (substr($what, -1)) {
 					case 'G':
-						$what <<= 10;
-					//nobreak;
+						$what = substr($what, 0, -1) << 30;
+					break;
 					case 'M':
-						$what <<= 10;
-					//nobreak;
+						$what = substr($what, 0, -1) << 20;
+					break;
 					case 'K':
-						$what <<= 10;
+						$what = substr($what, 0, -1) << 10;
 					break;
 				}
 				$criteria = $opcode . ' ' . $what . ' ';



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
--
squirrelmail-cvs mailing list
List Address: squirrelmail-cvs@lists.sourceforge.net
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
http://squirrelmail.org/cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic