nathank
(Nathan Kershaw)
8 أبريل 2026، 12:00ص
1
أنا معجب جدًا بالوظيفة الجديدة Calendar subscription URLs for external calendar apps - رائعة حقًا!
هذه مشكلة صغيرة لاحظتها أثناء الاستخدام الفعلي. عندما يكون هناك رمز & (أي &) في عنوان حدث في نسختي، فإن حدث التقويم المتزامن على Google يعرض كيان HTML (&) بدلاً من ذلك.
على سبيل المثال، في موقعي:
بينما في تقويم Google الخاص بي:
الأمر يعمل بشكل جيد عند إضافة حدث مباشرة إلى تقويم Google الخاص بي، ولم ألاحظ أي أحرف أخرى تسبب مشاكل.
إعجابَين (2)
شكرًا على التقرير @nathank سيتم إصلاحه عبر
main ← fix/ics-ampersand-encoding
opened 02:11PM - 08 Apr 26 UTC
ERB's `<%= %>` calls `ERB::Util.html_escape` on all non-`html_safe` strings, eve… n in non-HTML templates like `.ics.erb`. This caused ampersands (and potentially other special characters) to be double-encoded as `&` in calendar subscription feeds, which external calendar apps like Google Calendar displayed verbatim.
Mark `IcalEncoder.encode` output as `html_safe` since it already performs all necessary ICS encoding (HTML sanitization, entity decoding, RFC 5545 escaping). Also route the URL fields in both ICS templates through `IcalEncoder.encode` for consistency.
https://meta.discourse.org/t/400166
3 إعجابات
nathank
(Nathan Kershaw)
8 أبريل 2026، 8:26م
3
نعم، يمكنني تأكيد أن المشكلة تم حلها الآن!