Browse Source

Fixed a few places we weren't closing the IMAP connection before we exit.

mattphillips 25 years ago
parent
commit
d01e7efb20
3 changed files with 3 additions and 0 deletions
  1. 1 0
      src/folders.php
  2. 1 0
      src/folders_create.php
  3. 1 0
      src/read_body.php

+ 1 - 0
src/folders.php

@@ -73,6 +73,7 @@
    echo "</CENTER>";
    echo "</BODY></HTML>";
 	
+   sqimap_logout($imapConnection);
    exit;
    }
 

+ 1 - 0
src/folders_create.php

@@ -30,6 +30,7 @@
    if (strpos($folder_name, "\"") || strpos($folder_name, "\\") ||
        strpos($folder_name, "'") || strpos($folder_name, "$dm")) {
       plain_error_message(_("Illegal folder name.  Please select a different name.")."<BR><A HREF=\"../src/folders.php\">"._("Click here to go back")."</A>.", $color);
+      sqimap_logout($imapConnection);
       exit;
    }
 

+ 1 - 0
src/read_body.php

@@ -58,6 +58,7 @@
       }
       echo "</pre></td></tr></table>\n";
       echo "</body></html>";
+      sqimap_logout($imapConnection);
       exit;
    }