Skip to content

Commit

Permalink
Merge pull request #2458 from Stirling-Tools/pixeebot/2270-feature-re…
Browse files Browse the repository at this point in the history
…quest-external-db-support

Hardening suggestions for Stirling-PDF / 2270-feature-request-external-db-support
  • Loading branch information
Frooodle authored Dec 15, 2024
2 parents 3eab64c + 489e54d commit e6c8f19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public static boolean isURLReachable(String urlStr) {

// Allow only http and https protocols
String protocol = url.getProtocol();
if (!protocol.equals("http") && !protocol.equals("https")) {
if (!"http".equals(protocol) && !"https".equals(protocol)) {
return false; // Disallow other protocols
}

Expand Down

0 comments on commit e6c8f19

Please sign in to comment.