Skip to content

Commit

Permalink
Polish URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
rwinch committed Apr 3, 2019
1 parent 5fc284f commit 7cecccc
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CODE_OF_CONDUCT.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ appropriate to the circumstances. Maintainers are obligated to maintain confiden
with regard to the reporter of an incident.

This Code of Conduct is adapted from the
http://contributor-covenant.org[Contributor Covenant], version 1.3.0, available at
http://contributor-covenant.org/version/1/3/0/[contributor-covenant.org/version/1/3/0/]
https://contributor-covenant.org[Contributor Covenant], version 1.3.0, available at
https://contributor-covenant.org/version/1/3/0/[contributor-covenant.org/version/1/3/0/]
4 changes: 2 additions & 2 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
https://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

Expand Down Expand Up @@ -193,7 +193,7 @@
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
2 changes: 1 addition & 1 deletion nohttp-checkstyle/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ If you find the need to exclude additional URL patterns, you can do so by includ
</module>
----

It is important to note that you use http://checkstyle.sourceforge.net/config.html#Properties[checkstyle properties] to load the file as well.
It is important to note that you use https://checkstyle.org/config.html#Properties[checkstyle properties] to load the file as well.
If you want to make the property optional, you can specify a default of empty String in which case the additional whitelist is ignored.

[source,xml]
Expand Down
2 changes: 1 addition & 1 deletion nohttp/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The default whitelist includes a whitelist that impacts these primary categories
* URLs that use a TLD defined in https://tools.ietf.org/html/rfc2606 (i.e. tld of test, .example, invalid, localhost)
* XML Namespace names (not the locations)
* Java specific URLs that do not work over `http`.
For example, Java Properties http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/43ca3768126e/src/share/classes/sun/util/xml/PlatformXmlPropertiesProvider.java#l198[hard codes] using `http`.
For example, Java Properties https://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/43ca3768126e/src/share/classes/sun/util/xml/PlatformXmlPropertiesProvider.java#l198[hard codes] using `http`.

=== Adding Custom Rules

Expand Down
2 changes: 1 addition & 1 deletion nohttp/src/main/java/io/spring/nohttp/RegexPredicate.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public boolean test(String httpUrl) {
* <li>URLs that use a TLD defined in https://tools.ietf.org/html/rfc2606 (i.e. tld of test, .example, invalid, localhost)</li>
* <li>XML Namespace names (not the locations)</li>
* <li>Java specific URLs that do not work over http. For example, Java Properties
* <a href="http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/43ca3768126e/src/share/classes/sun/util/xml/PlatformXmlPropertiesProvider.java#l198">hard codes</a> using http.
* <a href="https://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/43ca3768126e/src/share/classes/sun/util/xml/PlatformXmlPropertiesProvider.java#l198">hard codes</a> using http.
* </li>
* </ul>
* @return
Expand Down
4 changes: 2 additions & 2 deletions nohttp/src/main/resources/io/spring/nohttp/whitelist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
^http://127\.0\.0\.1.*

// JDK forces properties\.dtd to be http
// http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/43ca3768126e/src/share/classes/sun/util/xml/PlatformXmlPropertiesProvider.java#l54
// http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/43ca3768126e/src/share/classes/sun/util/xml/PlatformXmlPropertiesProvider.java#l198
// https://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/43ca3768126e/src/share/classes/sun/util/xml/PlatformXmlPropertiesProvider.java#l54
// https://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/43ca3768126e/src/share/classes/sun/util/xml/PlatformXmlPropertiesProvider.java#l198
^http://java\.sun\.com/dtd/properties\.dtd.*
^http://java\.sun\.com/xml/jaxp/properties/schemaLanguage.*

Expand Down

0 comments on commit 7cecccc

Please sign in to comment.