Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 194 for validates (0.07 seconds)

  1. src/main/java/org/codelibs/core/io/FileUtil.java

            return normalizedPath.startsWith(normalizedBase);
        }
    
        /**
         * Validates that a given file is safe and does not attempt path traversal attacks.
         * <p>
         * This is a convenience method that converts File objects to Path and calls
         * {@link #isPathSafe(Path, Path)}.
         * </p>
         *
         * @param fileToCheck the file to validate (must not be {@literal null})
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Feb 12 12:10:45 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/api/chat/ChatApiManager.java

                return 4000;
            }
        }
    
        /**
         * Parses and validates field filter parameters from the request.
         * Only configured label values are accepted to prevent query injection.
         *
         * @param request the HTTP request
         * @return a map of field names to their validated filter values
         */
        protected Map<String, String[]> parseFieldFilters(final HttpServletRequest request) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 06:06:55 GMT 2026
    - 25.8K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/app/web/base/FessAdminAction.java

         */
        protected void write(final String path, final byte[] data) {
            validateFilePath(path);
            LdiFileUtil.write(path, data);
        }
    
        /**
         * Validates the file path.
         *
         * @param path the file path to validate
         */
        protected void validateFilePath(final String path) {
            if (StringUtil.isBlank(path)) {
                throw new IllegalArgumentException("File path cannot be blank.");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 13:57:12 GMT 2026
    - 10.9K bytes
    - Click Count (0)
  4. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/runtimes/CheckTargetRuntimes.kt

    import org.gradle.api.tasks.VerificationException
    import org.gradle.api.tasks.options.Option
    import org.gradle.work.DisableCachingByDefault
    import java.io.File
    import java.net.URI
    
    /**
     * Validates and optionally fixes the computed target runtimes for projects
     * in the Gradle build.
     *
     * Each project may require a set of "target runtimes" that it must be able to run on.
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Mar 11 22:40:18 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/sso/entraid/EntraIdAuthenticator.java

                throw new SsoLoginException("unexpected set of artifacts received");
            }
        }
    
        /**
         * Validates the OAuth2 state parameter.
         * @param session The HTTP session containing stored state data.
         * @param state The state parameter to validate.
         * @return The validated state data.
         */
        protected StateData validateState(final HttpSession session, final String state) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 08:03:27 GMT 2026
    - 56.8K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessTimeResourceProviderTest.java

                new FessTimeResourceProvider(null);
                // Constructor may accept null, so test continues
                assertTrue(true);
            } catch (NullPointerException e) {
                // Expected if constructor validates input
                assertTrue(true);
            }
        }
    
        // Test with different time adjustments
        @Test
        public void test_withDifferentTimeAdjustments() {
            // Test zero adjustment
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17.8K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/searchlist/AdminSearchlistAction.java

        //                                                                           =========
        /**
         * Validates document fields according to index field requirements.
         *
         * @param doc the document to validate
         * @param throwError consumer to handle validation errors
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:38:39 GMT 2026
    - 25.5K bytes
    - Click Count (1)
  8. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

            return crawlingConfig.getConfigParameterMap(config);
        }
    
        /**
         * Validates if the given URL string is a valid URL.
         *
         * @param urlStr the URL string to validate
         * @return true if the URL is valid, false otherwise
         */
        protected boolean isValidUrl(final String urlStr) {
            if (StringUtil.isBlank(urlStr)) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 12 01:46:45 GMT 2026
    - 55.3K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/net/InternetDomainName.java

          DIGIT_MATCHER.or(LETTER_MATCHER).or(DASH_MATCHER);
    
      /**
       * Helper method for {@link #validateSyntax(List)}. Validates that one part of a domain name is
       * valid.
       *
       * @param part The domain name part to be validated
       * @param isFinalPart Is this the final (rightmost) domain part?
       * @return Whether the part is valid
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 21:21:59 GMT 2026
    - 26.2K bytes
    - Click Count (0)
  10. src/main/webapp/js/chat.js

                    '</button>' +
                '</div>';
    
            messageElement.find('.message-wrapper').append(actionsHtml);
        }
    
        /**
         * Validates and sanitizes a URL to prevent javascript: and other dangerous protocols
         */
        function sanitizeUrl(url) {
            if (!url || typeof url !== 'string') {
                return '#';
            }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 01:36:02 GMT 2026
    - 30.6K bytes
    - Click Count (0)
Back to Top