瀏覽代碼

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

mattphillips 25 年之前
父節點
當前提交
d01e7efb20
共有 3 個文件被更改,包括 3 次插入0 次删除
  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;
    }