This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits pushed a commit to branch db/8607
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 68a41a19501dda105518de5f80e19e35d9e8668e
Author: Dave Brondsema <[email protected]>
AuthorDate: Fri May 29 12:17:04 2026 -0400

    fixup! [#8607] move |safe to be directly on the string source
---
 Allura/allura/ext/admin/templates/project_admin.html | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Allura/allura/ext/admin/templates/project_admin.html 
b/Allura/allura/ext/admin/templates/project_admin.html
index ba3e45b7f..a850d9df5 100644
--- a/Allura/allura/ext/admin/templates/project_admin.html
+++ b/Allura/allura/ext/admin/templates/project_admin.html
@@ -121,6 +121,12 @@
 {% block extra_js %}
 <script>
 $(function() {
+    {# need to escape HTML fields that hopscotch will interpret.  This makes 
our |safe usage above be correct, and non-safe will get escaped.
+      End result is the hopscotch tooltips match the main content output 
(either escaped or allowed html) #}
+    {% for s in tour.steps %}
+      {% do s.update({'title': s.title|escape}) %}
+      {% do s.update({'content': s.content|escape}) %}
+    {% endfor %}
     var tour = {{ tour|tojson }};
     tour.onError = function() {
         var step = hopscotch.getCurrStepNum();

Reply via email to