Add uriencoding of the password

pull/3644/merge
Isaac Connor 2023-01-06 12:22:04 -05:00
parent 18b8080569
commit 090b90565f
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,7 @@ int FfmpegCamera::OpenFfmpeg() {
if( mUser.length() > 0 ) {
// build the actual uri string with encoded parameters (from the user and pass fields)
mPath = StringToLower(protocol) + "://" + mUser + ":" + mPass + "@" + mMaskedPath.substr(7, std::string::npos);
mPath = StringToLower(protocol) + "://" + mUser + ":" + UriEncode(mPass) + "@" + mMaskedPath.substr(7, std::string::npos);
Debug(1, "Rebuilt URI with encoded parameters: '%s'", mPath.c_str());
}