mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
FIX: Upload#short_url
generates incorrect URL when extension is nil
.
This commit is contained in:
@ -890,7 +890,7 @@ class Post < ActiveRecord::Base
|
||||
/\/uploads\/#{RailsMultisite::ConnectionManagement.current_db}\//,
|
||||
/\/original\//,
|
||||
/\/optimized\//,
|
||||
/\/uploads\/short-url\/[a-zA-Z0-9]+\..*/
|
||||
/\/uploads\/short-url\/[a-zA-Z0-9]+(\.[a-z0-9]+)?/
|
||||
]
|
||||
|
||||
fragments ||= Nokogiri::HTML::fragment(self.cooked)
|
||||
|
Reference in New Issue
Block a user