aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Houston <robin@lenny.robin>2011-06-21 04:18:03 +0100
committerRobin Houston <robin@lenny.robin>2011-06-21 04:18:03 +0100
commit6c12fe40c90ea37c3227b033f99b2154587d7ab6 (patch)
tree21ec97749a2397696de439698a821c616eedbc3c
parent15266ebb181c500532af95845c84eb9d2a933c69 (diff)
Run wvText through the external_command wrapper, too
-rw-r--r--app/models/incoming_message.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index 938c74af0..9e0bfdbe7 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -1117,7 +1117,7 @@ class IncomingMessage < ActiveRecord::Base
tempfile.print body
tempfile.flush
if content_type == 'application/vnd.ms-word'
- system("/usr/bin/wvText " + tempfile.path + " " + tempfile.path + ".txt")
+ external_command("/usr/bin/wvText", tempfile.path, tempfile.path + ".txt")
# Try catdoc if we get into trouble (e.g. for InfoRequestEvent 2701)
if not File.exists?(tempfile.path + ".txt")
external_command("/usr/bin/catdoc", tempfile.path, :append_to => text)