File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
java/ql/src/Security/CWE/CWE-079 Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 10
10
</p >
11
11
12
12
<p >
13
- For example, if your application's WebView allows for visitng web pages
14
- which you do not trust, it is possible for an attacker to lead the user to
13
+ For example, if your application's WebView allows for visiting web pages
14
+ that you do not trust, it is possible for an attacker to lead the user to
15
15
a page which loads malicious JavaScript.
16
16
</p >
17
17
18
18
<p >
19
- You can enable or disbale Javascript execution using
19
+ You can enable or disable Javascript execution using
20
20
the <code >setJavaScriptEnabled</code > method of the settings of a WebView.
21
21
</p >
22
22
</overview >
30
30
</recommendation >
31
31
32
32
<example >
33
- <p >In the following (bad) example, a WebView has JavaScript enabled in its settings. </p >
33
+ <p >In the following (bad) example, a WebView has JavaScript enabled in its settings: </p >
34
34
35
35
<sample src =" WebSettingsEnableJavascript.java" />
36
36
37
- <p >In the following (good) example, a WebView explicitly disallows JavaScript execution. </p >
37
+ <p >In the following (good) example, a WebView explicitly disallows JavaScript execution: </p >
38
38
39
39
<sample src =" WebSettingsDisableJavascript.java" />
40
40
You can’t perform that action at this time.
0 commit comments