From 175d8eed7b80cf8588c868b9f5eb347c0fac9fb9 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 26 Apr 2010 11:58:17 -0400
Subject: [PATCH] - fix typos

---
 program/include/rcube_imap_generic.php |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/program/include/rcube_imap_generic.php b/program/include/rcube_imap_generic.php
index 0616b5a..383211a 100644
--- a/program/include/rcube_imap_generic.php
+++ b/program/include/rcube_imap_generic.php
@@ -394,14 +394,12 @@
         // process result
         $result = $this->parseResult($line);
         if ($result == 0) {
-            $this->error    .= '';
-            $this->errornum  = 0;
+            $this->errornum = 0;
             return $this->fp;
         }
 
-        $this->error    .= 'Authentication for ' . $user . ' failed (AUTH): "';
-        $this->error    .= htmlspecialchars($line) . '"';
-        $this->errornum  = $result;
+        $this->error    = "Authentication for $user failed (AUTH): $line";
+        $this->errornum = $result;
 
         return $result;
     }
@@ -416,17 +414,15 @@
         $result = $this->parseResult($line);
 
         if ($result == 0) {
-            $this->error    .= '';
-            $this->errornum  = 0;
+            $this->errornum = 0;
             return $this->fp;
         }
 
         fclose($this->fp);
         $this->fp = false;
     
-        $this->error    .= 'Authentication for ' . $user . ' failed (LOGIN): "';
-        $this->error    .= htmlspecialchars($line)."\"";
-        $this->errornum  = $result;
+        $this->error    = "Authentication for $user failed (LOGIN): $line";
+        $this->errornum = $result;
 
         return $result;
     }

--
Gitblit v1.9.1