Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903224

InitialUrlFilter::isInitialUrlMatch should do early detection of incorrect initial URL passed

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • jt6.0
    • jt6.0
    • tools
    • None
    • b23

      Method of InitialUrlFilter class

          public static boolean isInitialUrlMatch(String toCheck, String compareTo) {

      contains

      ...
         compareTo.charAt(compareTo.length() - 1)
      ...


      This would lead to StringIndexOutOfBounds in case if `compareTo` is empty.

      It would be better to check correctness of passed `compareTo` arg earlier

            dbessono Dmitry Bessonov
            dbessono Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: