avoid addstreamproxy rtsp user or pass contain +

This commit is contained in:
xiongguangjie 2024-03-16 19:34:06 +08:00 committed by 夏楚
parent af155ef87a
commit c9c2706843

View File

@ -294,8 +294,8 @@ void RtspUrl::setup(bool is_ssl, const string &url, const string &user, const st
splitUrl(ip, ip, port); splitUrl(ip, ip, port);
_url = std::move(url); _url = std::move(url);
_user = strCoding::UrlDecodeComponent(std::move(user)); _user = strCoding::UrlDecode(std::move(user));
_passwd = strCoding::UrlDecodeComponent(std::move(passwd)); _passwd = strCoding::UrlDecode(std::move(passwd));
_host = std::move(ip); _host = std::move(ip);
_port = port; _port = port;
_is_ssl = is_ssl; _is_ssl = is_ssl;