Skip to content

Commit 9fe4b75

Browse files
Reorder the "peculiar problem" list to be simpler
Signed-off-by: David A. Wheeler <[email protected]>
1 parent ba6e9c9 commit 9fe4b75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

secure_software_development_fundamentals.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3493,8 +3493,8 @@ In HTML, **&lt;a href=...&gt;** creates a hyperlink. The HTML construct **&lt;a
34933493

34943494
However, there's a special case you still need to worry about. If you do *all* of these things at the same time you may have a security problem:
34953495

3496-
1. The new page being loaded is from some (other) system that you don't totally trust.
3497-
2. Use HTML tag "a" with a named target or use JavaScript **window.open()** with a named target, *and*
3496+
1. Use HTML tag "a" with a named target or use JavaScript **window.open()** with a named target, *and*
3497+
2. The new page being loaded is from some (other) system that you don't totally trust, *and*
34983498
3. The named target is something *other* than the safe values **&#95;self** (the default for HTML's a tag), **&#95;blank** (the default for JavaScript's **window.open()**), **&#95;parent**, or **&#95;top**.
34993499

35003500
Where possible, when loading pages from other sites, don't use named targets (other than the safe ones listed above). If you really must use this unusual circumstance, fix this in HTML by adding **rel="noopener"** to the "a" tag.

0 commit comments

Comments
 (0)