Merge branch 'development' into LTS_development
This commit is contained in:
commit
663356d3bc
1 changed files with 6 additions and 0 deletions
|
@ -53,6 +53,9 @@ namespace Mist {
|
|||
if (found != std::string::npos){
|
||||
if (url.size() < m.size()){return false;}
|
||||
if (m.substr(0, found) == url.substr(0, found) && m.substr(found+1) == url.substr(url.size() - (m.size() - found) + 1)){
|
||||
if (url.substr(found, url.size() - m.size() + 1).find('/') != std::string::npos){
|
||||
return false;
|
||||
}
|
||||
streamname = url.substr(found, url.size() - m.size() + 1);
|
||||
return true;
|
||||
}
|
||||
|
@ -66,6 +69,9 @@ namespace Mist {
|
|||
if (url.size() < m.size()){return false;}
|
||||
size_t found_suf = url.find(m.substr(found+1), found);
|
||||
if (m.substr(0, found) == url.substr(0, found) && found_suf != std::string::npos){
|
||||
if (url.substr(found, found_suf - found).find('/') != std::string::npos){
|
||||
return false;
|
||||
}
|
||||
streamname = url.substr(found, found_suf - found);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue