-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complete ice server url validation #2996
Conversation
66e3206
to
bbc6fd4
Compare
as discussed in #2997 (comment), reusing the |
Less custom URL parsing seems in line with being "consistent with how we treat URLs elsewhere in the platform.". #2660 (comment)
OTOH, if this simple string compare lets us keep this in REC, why not do that for now, and add application/x-www-form-urlencoded back in later? That seems a reasonable way to increment here to me. |
Are there any URLs that would reveal differences in parsing of the first part of the url (ahead of the |
and forbid query string on stun/stuns see #2996 (comment)
I've switched to using a simple string comparison; I'm not sure using |
and forbid query string on stun/stuns see #2996 (comment)
940aa73
to
785dfaa
Compare
Yeah that algorithm supports multiple query parameters whereas our RFC does not, so it's arguably odd to support |
785dfaa
to
22f85c4
Compare
webrtc.html
Outdated
<li><p>TODO: validate ?transport=udp|tcp</p></li> | ||
<li>Let <var>urlParams</var> be the result of applying <a data-cite="url#concept-urlencoded-string-parser"><code>application/x-www-form-urlencoded</code> string parser</a> to <var>parsedURL</var>'s [=url/query=].</li> | ||
<li>If <var>urlParams</var>’s [=list/size=] is greater than 1, then fail.</li> | ||
<li>If <var>urlParams</var>’s [=list/size=] is 1, let <code>(<var>paramName</var>, <var>paramValue</var>)</code> be the two items of <code><var>urlParams/var>[0]</code>.</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing <
<li>If <var>urlParams</var>’s [=list/size=] is 1, let <code>(<var>paramName</var>, <var>paramValue</var>)</code> be the two items of <code><var>urlParams/var>[0]</code>.</li> | |
<li>If <var>urlParams</var>’s [=list/size=] is 1, let <code>(<var>paramName</var>, <var>paramValue</var>)</code> be the two items of <code><var>urlParams</var>[0]</code>.</li> |
close #2912
Preview | Diff