diff --git a/src/main/java/stirling/software/SPDF/utils/GeneralUtils.java b/src/main/java/stirling/software/SPDF/utils/GeneralUtils.java index 13d19145..53c845ed 100644 --- a/src/main/java/stirling/software/SPDF/utils/GeneralUtils.java +++ b/src/main/java/stirling/software/SPDF/utils/GeneralUtils.java @@ -86,7 +86,7 @@ public class GeneralUtils { // 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 }