Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2021-11-29 11:59:44 +0300
committerAleksander Machniak <alec@alec.pl>2021-11-29 11:59:44 +0300
commit688320b4c6750c5260719d044d0812945bd7fbeb (patch)
tree7b7c5065489c8062c0778c2e3ef464d3110e91ac
parenta722751dfc906f160e3c4e305e2f732d516e1387 (diff)
readBytes() never returns null
-rw-r--r--program/lib/Roundcube/rcube_imap_generic.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_imap_generic.php b/program/lib/Roundcube/rcube_imap_generic.php
index 7312a6898..4f2cdacc5 100644
--- a/program/lib/Roundcube/rcube_imap_generic.php
+++ b/program/lib/Roundcube/rcube_imap_generic.php
@@ -246,7 +246,7 @@ class rcube_imap_generic
while (strlen($out) < $bytes) {
$out = $this->readBytes($bytes);
- if ($out === null) {
+ if ($out === '') {
break;
}
@@ -278,7 +278,7 @@ class rcube_imap_generic
while (strlen($out) < $bytes) {
$line = $this->readBytes($bytes);
- if ($line === null) {
+ if ($line === '') {
break;
}