From e1cf7c4c356495fb53db086d0e46dfe0a75f319c Mon Sep 17 00:00:00 2001
From: svncommit <devs@roundcube.net>
Date: Mon, 15 May 2006 10:12:14 -0400
Subject: [PATCH] Fix of empty folder bug by Jon Daley (roundcube@jon.limedaley.com)

---
 program/js/app.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index e6c9e84..cd5eb96 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3012,8 +3012,11 @@
   this.http_response = function(request_obj)
     {
     var ctype = request_obj.get_header('Content-Type');
-    if (ctype)
+    if (ctype){
       ctype = String(ctype).toLowerCase();
+      var ctype_array=ctype.split(";");
+      ctype = ctype_array[0];
+    }
 
     if (request_obj.__lock)
       this.set_busy(false);

--
Gitblit v1.9.1