WebHost: fix log fetching extra characters when there is non-ascii (#5515)

This commit is contained in:
black-sliver
2025-10-05 19:05:52 +00:00
committed by GitHub
parent fd879408f3
commit 60617c682e
2 changed files with 5 additions and 6 deletions

View File

@@ -58,8 +58,7 @@
Open Log File...
</a>
</div>
{% set log = get_log() -%}
{%- set log_len = log | length - 1 if log.endswith("…") else log | length -%}
{% set log, log_len = get_log() -%}
<div id="logger" style="white-space: pre">{{ log }}</div>
<script>
let url = '{{ url_for('display_log', room = room.id) }}';