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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,6 @@

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 witha> {{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 serializera>
205202
on |url|.
@@ -308,6 +305,9 @@

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 @@

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-

0 commit comments

Comments
 (0)