A platform for community discussion. Free, open, simple.
FIX: uploads with no extension causing error in message processor (#35656)
David Battersby1671512ce621
diff --git a/plugins/chat/lib/chat/message_processor.rb b/plugins/chat/lib/chat/message_processor.rbindex 17d7d3ac85c..b05bc1f284c 100644--- a/plugins/chat/lib/chat/message_processor.rb+++ b/plugins/chat/lib/chat/message_processor.rb@@ -27,7 +27,7 @@ module Chatreturn if !SiteSetting.create_thumbnails@model.uploads.each do |upload|- next if upload.blank? || IMG_FILETYPES.exclude?(upload.extension.downcase)+ next if upload.blank? || IMG_FILETYPES.exclude?(upload.extension&.downcase)if upload.width <= SiteSetting.max_image_width &&upload.height <= SiteSetting.max_image_height