From f620879eb5104b8198fbc1ee2a9a04a6e2912382 Mon Sep 17 00:00:00 2001 From: Toure Dunnon Date: Tue, 28 Jan 2025 02:34:29 -0500 Subject: [PATCH] Fix: URL-encode password in Duet::get_connect_url (#8215) Signed-off-by: Toure Dunnon --- src/slic3r/Utils/Duet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/Utils/Duet.cpp b/src/slic3r/Utils/Duet.cpp index 92c8b1911c..1a4974a957 100644 --- a/src/slic3r/Utils/Duet.cpp +++ b/src/slic3r/Utils/Duet.cpp @@ -205,7 +205,7 @@ std::string Duet::get_connect_url(const bool dsfUrl) const } else { return (boost::format("%1%rr_connect?password=%2%&%3%") % get_base_url() - % (password.empty() ? "reprap" : password) + % Http::url_encode(password.empty() ? "reprap" : password) // url_encode is needed because password can contain special characters like `&`, "#", etc. % timestamp_str()).str(); } }