diff options
author | Peter 'Pita' Martischka <petermartischka@googlemail.com> | 2011-11-25 16:58:00 -0800 |
---|---|---|
committer | Peter 'Pita' Martischka <petermartischka@googlemail.com> | 2011-11-25 16:58:00 -0800 |
commit | 932ad0eeeb96d2eb75b29aa4e27fe89378089059 (patch) | |
tree | 3269ce5339cbde93e783a52eb9c741d29b30b416 | |
parent | 7296913cb0f347f4ea036427eb4e0dcdbaec9814 (diff) | |
download | etherpad-lite-932ad0eeeb96d2eb75b29aa4e27fe89378089059.zip |
This may fixes the pdf convert issue
-rw-r--r-- | node/handler/ImportHandler.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/handler/ImportHandler.js b/node/handler/ImportHandler.js index a1ddf992..16f85891 100644 --- a/node/handler/ImportHandler.js +++ b/node/handler/ImportHandler.js @@ -81,7 +81,7 @@ exports.doImport = function(req, res, padId) //this allows us to accept source code files like .c or .java function(callback) { - var fileEnding = srcFile.split(".")[1]; + var fileEnding = srcFile.split(".")[1].toLowerCase(); var knownFileEndings = ["txt", "doc", "docx", "pdf", "odt", "html", "htm"]; //find out if this is a known file ending |