File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
swift/ql/src/queries/Security Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 4646
4747 </p >
4848
49- <sample src =" IncompleteHostnameRegexBad.swift" />
49+ <sample src =" IncompleteHostnameRegexBad.swift" language = " " />
5050
5151 <p >
5252
6363
6464 </p >
6565
66- <sample src =" IncompleteHostnameRegexGood.swift" />
66+ <sample src =" IncompleteHostnameRegexGood.swift" language = " " />
6767
6868 </example >
6969
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ likely to handle corner cases correctly than a custom implementation.
2828The following example attempts to filters out all <code >< script> </code > tags.
2929</p >
3030
31- <sample src =" BadTagFilterBad.swift" />
31+ <sample src =" BadTagFilterBad.swift" language = " " />
3232
3333<p >
3434The above sanitizer does not filter out all <code >< script> </code > tags.
Original file line number Diff line number Diff line change 33 <include src =" ReDoSIntroduction.inc.qhelp" />
44 <example >
55 <p >Consider the following regular expression:</p >
6- <sample language =" swift " >
6+ <sample language =" " >
77/^_(__|.)+_$/</sample >
88 <p >
99 Its sub-expression <code >"(__|.)+"</code > can match the string
1919 the ambiguity between the two branches of the alternative inside the
2020 repetition:
2121 </p >
22- <sample language =" swift " >
22+ <sample language =" " >
2323/^_(__|[^_])+_$/</sample >
2424 </example >
2525 <include src =" ReDoSReferences.inc.qhelp" />
You can’t perform that action at this time.
0 commit comments