File tree Expand file tree Collapse file tree
java/ql/src/experimental/Security/CWE/CWE-297 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,22 +21,22 @@ if the method returns false.
2121
2222<example >
2323<p >
24- In the following example, the method <code >HostnameVerifier.verify()</code > but its result is ignored.
24+ In the following example, the method <code >HostnameVerifier.verify()</code > is called but its result is ignored.
2525As a result, no hostname verification actually happens.
2626</p >
2727<sample src =" IgnoredHostnameVerification.java" />
2828
2929<p >
3030In the next example, the result of the <code >HostnameVerifier.verify()</code > method is checked
31- and an exeption is thrown if it the verification failed.
31+ and an exeption is thrown if the verification failed.
3232</p >
3333<sample src =" CheckedHostnameVerification.java" />
3434</example >
3535
3636<references >
3737<li >
3838 Java API Specification:
39- <a href =" https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/net/ssl/HostnameVerifier.html#verify(java.lang.String,javax.net.ssl.SSLSession)" >HostnameVerifier.veify () method</a >.
39+ <a href =" https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/net/ssl/HostnameVerifier.html#verify(java.lang.String,javax.net.ssl.SSLSession)" >HostnameVerifier.verify () method</a >.
4040</li >
4141</references >
42- </qhelp >
42+ </qhelp >
You can’t perform that action at this time.
0 commit comments