fix: minor improvements to web templates, banking page and CI workflow (#55525)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Mihir Kandoi
2026-06-02 08:26:23 +05:30
committed by GitHub
parent 78f9434d14
commit 85be72a403
4 changed files with 10 additions and 6 deletions

View File

@@ -16,6 +16,10 @@ on:
- cron: "0 10 * * 1" - cron: "0 10 * * 1"
workflow_dispatch: workflow_dispatch:
# The runner dispatch uses RELEASE_TOKEN (a PAT), not the default GITHUB_TOKEN,
# so no GITHUB_TOKEN permissions are required.
permissions: {}
jobs: jobs:
trigger-runners: trigger-runners:
name: Trigger sync → ${{ matrix.hotfix_branch }} name: Trigger sync → ${{ matrix.hotfix_branch }}

View File

@@ -24,10 +24,10 @@
if(content.length > show_char) { if(content.length > show_char) {
var c = content.substr(0, show_char) var c = content.substr(0, show_char)
var h = content.substr(show_char, content.length - show_char);
html = c + '&nbsp;&nbsp;...' // Set as text (not HTML) so DOM text isn't re-interpreted as
$(this).html(html); // markup (XSS). \u00a0 is a non-breaking space (same as &nbsp;).
$(this).text(c + '\u00a0\u00a0...');
} }
}); });
}); });

View File

@@ -18,7 +18,7 @@ frappe.ready(function() {
} }
var thread = null; var thread = null;
function findResult(t) { function findResult(t) {
window.location.href="/projects?project={{doc.name}}&q=" + t; window.location.href="/projects?project={{doc.name}}&q=" + encodeURIComponent(t);
} }
$("#project-search").keyup(function() { $("#project-search").keyup(function() {

View File

@@ -8,8 +8,8 @@ from frappe.utils.jinja_globals import is_rtl
no_cache = 1 no_cache = 1
SCRIPT_TAG_PATTERN = re.compile(r"\<script[^<]*\</script\>") SCRIPT_TAG_PATTERN = re.compile(r"\<script[^<]*\</script\>", re.IGNORECASE)
CLOSING_SCRIPT_TAG_PATTERN = re.compile(r"</script\>") CLOSING_SCRIPT_TAG_PATTERN = re.compile(r"</script\>", re.IGNORECASE)
def get_context(context): def get_context(context):