Author: ozeigermann
Date: Tue Sep 25 09:46:22 2007
New Revision: 579314

URL: http://svn.apache.org/viewvc?rev=579314&view=rev
Log:
Added dot file extension and made check case insensitive

Modified:
    
jakarta/slide/trunk/wck/src/org/apache/slide/simple/store/WebdavStoreAdapter.java

Modified: 
jakarta/slide/trunk/wck/src/org/apache/slide/simple/store/WebdavStoreAdapter.java
URL: 
http://svn.apache.org/viewvc/jakarta/slide/trunk/wck/src/org/apache/slide/simple/store/WebdavStoreAdapter.java?rev=579314&r1=579313&r2=579314&view=diff
==============================================================================
--- 
jakarta/slide/trunk/wck/src/org/apache/slide/simple/store/WebdavStoreAdapter.java
 (original)
+++ 
jakarta/slide/trunk/wck/src/org/apache/slide/simple/store/WebdavStoreAdapter.java
 Tue Sep 25 09:46:22 2007
@@ -63,7 +63,7 @@
 
     private static final String[][] QND_EXTENSION_TO_DOCTYPE_MAPPING_STRINGS = 
new String[][] {
             { "txt", "text/plain" }, { "html", "text/html" }, { "csv", 
"text/csv" },
-            { "pdf", "application/pdf" }, { "doc", "application/msword" },
+            { "pdf", "application/pdf" }, { "doc", "application/msword" },  { 
"dot", "application/msword" },
             { "ppt", "application/mspowerpoint" }, { "xls", 
"application/msexcel" },
             { "xml", "text/xml" }, };
 
@@ -107,7 +107,7 @@
         String ext = "";
         int lastDot = filename.lastIndexOf('.');
         if (lastDot != -1) {
-            ext = filename.substring(lastDot + 1);
+            ext = filename.substring(lastDot + 1).toLowerCase();
         }
         return ext;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to