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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • jt6.0
    • Affects Version/s: jt6.0
    • Component/s: 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

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

              Created:
              Updated:
              Resolved: