summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-27 21:14:48 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-27 21:14:48 +0200
commita627a650fda4e22107245a3269465347bb778258 (patch)
treeb864316bd270da5d586d664db4ddf2bae90320df /app/models
parenta3eb6c52abc896697df1c79ff27137075e558123 (diff)
Stage 7 click-testing fixes
- aggregate: switch to shortcode syntax [aggregate ...]; fix paragraph wrapping by excising the shortcode and its surrounding <p> before sanitize, concatenating collection output outside sanitized content - page.rb: remove aggregate XML unwrapping from rewrite_links_in_body (no longer needed with shortcode approach) - rss builders: explicit CGI.escapeHTML on title/abstract; Builder 3.3.0 does not escape when target buffer is html_safe (ActionView default) - tinymce: disable menubar and promotion nag; add code plugin, remove paste plugin (built into TinyMCE 8 core); configure via admin_interface.js directly (config/tinymce.yml affects tinymce() helper only, not tinymce.init)
Diffstat (limited to 'app/models')
-rw-r--r--app/models/page.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/models/page.rb b/app/models/page.rb
index 67db50a..e6baf20 100644
--- a/app/models/page.rb
+++ b/app/models/page.rb
@@ -232,11 +232,6 @@ class Page < ApplicationRecord
232 links = links.reject { |l| l[:href] =~ /system\/uploads/ } 232 links = links.reject { |l| l[:href] =~ /system\/uploads/ }
233 locales = I18n.available_locales.reject {|l| l == :root} 233 locales = I18n.available_locales.reject {|l| l == :root}
234 234
235 if xml_doc.find("//p/aggregate")[0]
236 aggregate_tags = xml_doc.find("//aggregate")
237 aggregate_tags[0].parent.replace_with aggregate_tags[0]
238 end
239
240 links.each do |link| 235 links.each do |link|
241 unless locales.include? link[:href].slice(1,2).to_sym 236 unless locales.include? link[:href].slice(1,2).to_sym
242 unless link[:href] =~ /sytem\/uploads/ 237 unless link[:href] =~ /sytem\/uploads/