mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 13:56:50 +08:00
0604dc7d3e
* FIX: Remove invalid chars from feed XMLs See https://meta.discourse.org/t/rss-subscription-broken-by-post-content/282415?u=falco * Adjust filter condition
6 lines
139 B
Ruby
6 lines
139 B
Ruby
# frozen_string_literal: true
|
|
|
|
module XmlCleaner
|
|
INVALID_CHARACTERS = /[^\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD\u{10000}-\u{10FFFF}]/u
|
|
end
|