File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -424,7 +424,9 @@ dmd -cov -unittest myprog.d
424424 )
425425
426426 $(SWITCH $(SWNAME -D),
427- generate $(LINK2 spec/ddoc.html, documentation) from source
427+ $(P Generate $(LINK2 spec/ddoc.html, documentation) from source.)
428+
429+ $(P Note: mind the $(LINK2 spec/ddoc.html#security, security considerations).)
428430 )
429431
430432 $(SWITCH $(SWNAME -Dd)$(I docdir),
Original file line number Diff line number Diff line change @@ -1033,6 +1033,16 @@ $(P
10331033 generated by Ddoc.
10341034)
10351035
1036+ $(H2 $(LNAME2 security, Security considerations))
1037+
1038+ $(P
1039+ Note that DDoc comments may embed raw HTML, including
1040+ $(LT)script$(GT) tags. Be careful when publishing or distributing
1041+ rendered DDoc HTML generated from untrusted sources, as this may
1042+ allow $(LINK2 https://en.wikipedia.org/wiki/Cross-site_scripting,
1043+ cross-site scripting).
1044+ )
1045+
10361046$(H2 Links to D documentation generators)
10371047
10381048$(P
You can’t perform that action at this time.
0 commit comments