Skip to content

Commit 99cccb7

Browse files
committed
Add http+https checks to validation
1 parent a3a4319 commit 99cccb7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

index.html

+4-5
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,6 @@ <h4>
197197
</li>
198198
<li>Assert: |url| is {{URL}}.
199199
</li>
200-
<li>If |url|'s [=URL/scheme=] is not "http" or "https", return
201-
<a>a promise rejected with</a> {{TypeError}}.
202-
</li>
203200
<li>Set |data| to a copy of |data|, with its {{ShareData/url}}
204201
member set to the result of running the <a>URL serializer</a>
205202
on |url|.
@@ -308,6 +305,9 @@ <h3>
308305
</li>
309306
<li>If |url| is failure, return false.
310307
</li>
308+
<li>If |url|'s [=URL/scheme=] is not "http" or "https", return
309+
return false.
310+
</li>
311311
</ol>
312312
</li>
313313
<li>Return true.
@@ -553,8 +553,7 @@ <h2>
553553
when information should be confidential, so forwarding any content
554554
presents a risk. In particular, the {{ShareData/title}} might be
555555
used by an attacker to trick a user into misinterpreting the nature
556-
of the content.
557-
<!--
556+
of the content. <!--
558557
, as demonstrated in the [[Wylecial]] <a data-cite=
559558
"Wylecial#">proof of concept attack</a>
560559
-->

0 commit comments

Comments
 (0)