File tree 3 files changed +5
-5
lines changed
swift/ql/src/queries/Security
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 46
46
47
47
</p >
48
48
49
- <sample src =" IncompleteHostnameRegexBad.swift" />
49
+ <sample src =" IncompleteHostnameRegexBad.swift" language = " " />
50
50
51
51
<p >
52
52
63
63
64
64
</p >
65
65
66
- <sample src =" IncompleteHostnameRegexGood.swift" />
66
+ <sample src =" IncompleteHostnameRegexGood.swift" language = " " />
67
67
68
68
</example >
69
69
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ likely to handle corner cases correctly than a custom implementation.
28
28
The following example attempts to filters out all <code >< script> </code > tags.
29
29
</p >
30
30
31
- <sample src =" BadTagFilterBad.swift" />
31
+ <sample src =" BadTagFilterBad.swift" language = " " />
32
32
33
33
<p >
34
34
The above sanitizer does not filter out all <code >< script> </code > tags.
Original file line number Diff line number Diff line change 3
3
<include src =" ReDoSIntroduction.inc.qhelp" />
4
4
<example >
5
5
<p >Consider the following regular expression:</p >
6
- <sample language =" swift " >
6
+ <sample language =" " >
7
7
/^_(__|.)+_$/</sample >
8
8
<p >
9
9
Its sub-expression <code >"(__|.)+"</code > can match the string
19
19
the ambiguity between the two branches of the alternative inside the
20
20
repetition:
21
21
</p >
22
- <sample language =" swift " >
22
+ <sample language =" " >
23
23
/^_(__|[^_])+_$/</sample >
24
24
</example >
25
25
<include src =" ReDoSReferences.inc.qhelp" />
You can’t perform that action at this time.
0 commit comments