Fixed incorrect stripping of ? character and beyond in stream name containing a + or space character before the ? character.
This commit is contained in:
parent
b93841f659
commit
421842bda5
1 changed files with 5 additions and 1 deletions
|
@ -53,7 +53,11 @@ void Util::sanitizeName(std::string & streamname) {
|
||||||
if(index != std::string::npos){
|
if(index != std::string::npos){
|
||||||
std::string preplus = streamname.substr(0,index);
|
std::string preplus = streamname.substr(0,index);
|
||||||
sanitizeName(preplus);
|
sanitizeName(preplus);
|
||||||
streamname = preplus+"+"+streamname.substr(index+1);
|
std::string postplus = streamname.substr(index+1);
|
||||||
|
if (postplus.find('?') != std::string::npos){
|
||||||
|
postplus = postplus.substr(0, (postplus.find('?')));
|
||||||
|
}
|
||||||
|
streamname = preplus+"+"+postplus;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (std::string::iterator i = streamname.end() - 1; i >= streamname.begin(); --i) {
|
for (std::string::iterator i = streamname.end() - 1; i >= streamname.begin(); --i) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue