Update of /cvsroot/squirrelmail/squirrelmail/functions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8852
Modified Files:
Tag: SM-1_4-STABLE
imap_general.php
Log Message:
Should compared strings with strings. Otherwise a string of just '0' is treated as false
Index: imap_general.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/functions/imap_general.php,v
retrieving revision 1.140.2.21
retrieving revision 1.140.2.22
diff -u -w -r1.140.2.21 -r1.140.2.22
--- imap_general.php 28 Sep 2004 05:37:13 -0000 1.140.2.21
+++ imap_general.php 29 Oct 2004 18:02:14 -0000 1.140.2.22
@@ -128,20 +128,20 @@
if ($iRemaining < $iBufferSize) {
$iBufferSize = $iRemaining;
}
- if (!$sRead) {
+ if ($sRead == '') {
$results = false;
break;
}
- if ($sReadRem) {
+ if ($sReadRem != '') {
$sRead = $sReadRem . $sRead;
$sReadRem = '';
}
- if ($filter && $sRead) {
+ if ($filter && $sRead != '') {
// in case the filter is base64 decoding we return a remainder
$sReadRem = $filter($sRead);
}
- if ($outputstream && $sRead) {
+ if ($outputstream && $sRead != '') {
if (is_resource($outputstream)) {
fwrite($outputstream,$sRead);
} else if ($outputstream == 'php://stdout') {
|