Fix: URL-encode password in Duet::get_connect_url (#8215)
Signed-off-by: Toure Dunnon <tdunnon@gmail.com>
This commit is contained in:
parent
6ed68342e0
commit
f620879eb5
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue