diff --git a/VERSION b/VERSION index 3534bef..18f8370 100755 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.6.1-develop15 +4.6.1-develop16 diff --git a/web-ui/js/components/log-viewer.js b/web-ui/js/components/log-viewer.js index 5e4dfe2..4363a0e 100755 --- a/web-ui/js/components/log-viewer.js +++ b/web-ui/js/components/log-viewer.js @@ -318,16 +318,23 @@ class LogViewer { * @returns {string} - HTML with clickable links */ makeLinksClickable(text) { - // URL regex pattern that matches http:// and https:// URLs - const urlRegex = /(https?:\/\/[^\s]+)/g; + // URL regex patterns for both HTTP and HTTPS - handled identically + const httpRegex = /(http:\/\/[^\s]+)/g; + const httpsRegex = /(https:\/\/[^\s]+)/g; // Escape the entire text first for security const escapedText = this.escapeHtml(text); - // Replace URLs with clickable links - return escapedText.replace(urlRegex, (url) => { + // Replace both HTTP and HTTPS URLs with identical clickable links + let result = escapedText.replace(httpRegex, (url) => { return `${url}`; }); + + result = result.replace(httpsRegex, (url) => { + return `${url}`; + }); + + return result; } scrollToTop() {