From 278720386d3d1cb474eae9c2bc9973be0d77878a Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Mon, 22 Oct 2012 11:45:35 +0100 Subject: Handle a blank convert command more explicitly. --- app/controllers/request_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/request_controller.rb') diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 3296db6b7..428dc4c23 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -876,7 +876,7 @@ class RequestController < ApplicationController Zip::ZipFile.open(file_path, Zip::ZipFile::CREATE) { |zipfile| convert_command = Configuration::html_to_pdf_command done = false - if File.exists?(convert_command) + if !convert_command.blank? && File.exists?(convert_command) url = "http://#{Configuration::domain}#{request_url(info_request)}?print_stylesheet=1" tempfile = Tempfile.new('foihtml2pdf') output = AlaveteliExternalCommand.run(convert_command, url, tempfile.path) -- cgit v1.2.3