aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2009-09-22 18:28:39 +0000
committerfrancis <francis>2009-09-22 18:28:39 +0000
commit284ba4a44952441283bb516637b5d998508d72e2 (patch)
tree5bb44f66138c350ec8d1bda4bc443ce2a84333e5
parent6f18521e7e3783d2ed89cba3c7087ce25d3c8b67 (diff)
Don't obey permissions on PDFs (as the information is public).
-rw-r--r--app/models/incoming_message.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index 410d1039f..45089e0a7 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -19,7 +19,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: incoming_message.rb,v 1.225 2009-09-17 21:10:05 francis Exp $
+# $Id: incoming_message.rb,v 1.226 2009-09-22 18:28:39 francis Exp $
# TODO
# Move some of the (e.g. quoting) functions here into rblib, as they feel
@@ -318,7 +318,7 @@ class FOIAttachment
html = File.read(tempfile.path + ".html")
File.unlink(tempfile.path + ".html")
elsif self.content_type == 'application/pdf'
- IO.popen("/usr/bin/pdftohtml -zoom 1.0 -stdout -enc UTF-8 -noframes " + tempfile.path + "", "r") do |child|
+ IO.popen("/usr/bin/pdftohtml -nodrm -zoom 1.0 -stdout -enc UTF-8 -noframes " + tempfile.path + "", "r") do |child|
html = child.read()
end
@@ -328,7 +328,7 @@ class FOIAttachment
if html.size == 0
system("/usr/bin/pdf2ps " + tempfile.path + " " + tempfile.path + ".ps")
system("/usr/bin/ps2pdf " + tempfile.path + ".ps " + tempfile.path)
- IO.popen("/usr/bin/pdftohtml -zoom 1.0 -stdout -enc UTF-8 -noframes " + tempfile.path + "", "r") do |child|
+ IO.popen("/usr/bin/pdftohtml -nodrm -zoom 1.0 -stdout -enc UTF-8 -noframes " + tempfile.path + "", "r") do |child|
html = child.read()
end
end