From c90469b0b75102188325f3a1de0fc18161c1b5a4 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Fri, 3 Mar 2023 22:37:57 -0800 Subject: [PATCH] URI encode download logfile parameter --- data/interfaces/default/logs.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/interfaces/default/logs.html b/data/interfaces/default/logs.html index 56e6a4dc..f8262fb6 100644 --- a/data/interfaces/default/logs.html +++ b/data/interfaces/default/logs.html @@ -453,12 +453,12 @@ $("#download-tautullilog").click(function () { var logfile = $(".tab-pane.active").data('logfile'); - window.location.href = "download_log?logfile=" + logfile; + window.location.href = "download_log?logfile=" + window.encodeURIComponent(logfile); }); $("#download-plexserverlog").click(function () { var logfile = $("option:selected", "#plex-log-files").val(); - window.location.href = "download_plex_log?logfile=" + logfile; + window.location.href = "download_plex_log?logfile=" + window.encodeURIComponent(logfile); }); $("#clear-notify-logs").click(function () {