Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isValidFileProtocol (0.12 sec)

  1. src/main/java/org/codelibs/fess/helper/ProtocolHelper.java

         *
         * @param url the URL to validate
         * @return true if the URL starts with a supported file protocol, false otherwise
         */
        public boolean isValidFileProtocol(final String url) {
            return stream(fileProtocols).get(stream -> stream.anyMatch(s -> url.startsWith(s)));
        }
    
        /**
         * Adds a new web protocol to the supported protocols list.
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Dec 12 13:58:40 UTC 2025
    - 12.4K bytes
    - Viewed (1)
  2. src/main/java/org/codelibs/fess/helper/WebFsIndexHelper.java

                    if (!urlValue.startsWith("#")) {
                        final String u;
                        if (!protocolHelper.isValidFileProtocol(urlValue)) {
                            if (urlValue.startsWith("/")) {
                                u = "file:" + urlValue;
                            } else {
                                u = "file:/" + urlValue;
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 25K bytes
    - Viewed (0)
Back to top