mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix #1445, limit the createStream recursive depth. 3.0.70
This commit is contained in:
parent
41a9f15626
commit
4f298134af
7 changed files with 327 additions and 9 deletions
|
@ -200,9 +200,9 @@ string srs_generate_stream_with_query(string host, string vhost, string stream,
|
|||
|
||||
// Remove the start & when param is empty.
|
||||
srs_string_trim_start(query, "&");
|
||||
|
||||
|
||||
// Prefix query with ?.
|
||||
if (!srs_string_starts_with(query, "?")) {
|
||||
if (!query.empty() && !srs_string_starts_with(query, "?")) {
|
||||
url += "?";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue