Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1994

String.replaceAll(regex, replacement). The dot in ".html" I guess is meant to be literal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4-RC1
    • 1.4-RC2
    • wicket
    • None

    Description

      In PackageResourceGuard

      protected boolean acceptAbsolutePath(String path)
      {
      ...
      if ("html".equals(ext) &&
      getClass().getClassLoader().getResource(path.replaceAll(".html", ".class")) != null)

      { return false; }

      return acceptExtension(ext);
      }

      String.replaceAll(regex, replacement). I guess it must be replaceAll("
      .html", ".class") instead.

      Attachments

        Activity

          People

            jdonnerstag Juegen Donnerstag
            jdonnerstag Juegen Donnerstag
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: