Modified: trunk/app/controllers/previews_controller.rb (3140 => 3141)
--- trunk/app/controllers/previews_controller.rb 2012-10-01 23:55:40 UTC (rev 3140)
+++ trunk/app/controllers/previews_controller.rb 2012-10-04 10:47:20 UTC (rev 3141)
@@ -69,6 +69,11 @@
when 'svg'; content_blob = @context.preview.svg_blob
end
+ if content_blob.nil?
+ render :nothing => true, :status => "404 Not Found"
+ return
+ end
+
file_name = @context.preview.file_name(type)
send_cached_data(file_name, :type => mime_type, :disposition => 'inline') {