From 179fbce2d5fd72ab6a1139acb93c94381096eaee Mon Sep 17 00:00:00 2001 From: hp3icc Date: Mon, 2 Feb 2026 07:54:07 -0500 Subject: [PATCH] Update security_downloader.py --- security_downloader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/security_downloader.py b/security_downloader.py index 79b52de..6c985ba 100644 --- a/security_downloader.py +++ b/security_downloader.py @@ -3,6 +3,7 @@ import os import logging import urllib.request import urllib.error +from urllib.parse import quote import tempfile import shutil import socket @@ -49,7 +50,7 @@ def build_download_url(config, filename): logger.error('(SECURITY) Could not resolve hostname: %s', url_security) return None, None - url = f"http://{host}:{port_security}/descargar?pass={pass_security}&file={filename}" + url = f"http://{host}:{port_security}/descargar?pass={quote(pass_security, safe='')}&file={filename}" return url, url_security def download_file_safely(url, dest_path, timeout=60):