You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2026/05/29 16:17:17 UTC

(allura) branch db/8607 updated (356de29c4 -> 68a41a195)

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

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


    from 356de29c4 fixup! [#8607] test for save_attachments (export) path handling
     new c8cbac512 fixup! [#8607] escape html in a few places
     new 68a41a195 fixup! [#8607] move |safe to be directly on the string source

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 Allura/allura/ext/admin/templates/project_admin.html | 6 ++++++
 Allura/allura/templates/site_admin_new_projects.html | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)


(allura) 01/02: fixup! [#8607] escape html in a few places

Posted by br...@apache.org.
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 c8cbac512d5e2b626579f315e27a88eaf268eb90
Author: Dave Brondsema <da...@brondsema.net>
AuthorDate: Fri May 29 11:13:31 2026 -0400

    fixup! [#8607] escape html in a few places
---
 Allura/allura/templates/site_admin_new_projects.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Allura/allura/templates/site_admin_new_projects.html b/Allura/allura/templates/site_admin_new_projects.html
index 1b954936b..a900c6088 100644
--- a/Allura/allura/templates/site_admin_new_projects.html
+++ b/Allura/allura/templates/site_admin_new_projects.html
@@ -170,7 +170,7 @@
                     flash(response.message, 'success');
                     form.remove();
                     var td = el.closest('tr').find('td:first');
-                    td.html('<p><strong>Notes:</strong>' + html_escape(textarea.val()) + '</p>');
+                    td.html('<p><strong>Notes:</strong>' + escape_html(textarea.val()) + '</p>');
                     el.remove();
                 }).fail(function (response){
                     flash(response.message, 'error');


(allura) 02/02: fixup! [#8607] move |safe to be directly on the string source

Posted by br...@apache.org.
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 <da...@brondsema.net>
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();