Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3150

SimpleUrlPattern do not accept all the chars accepted by Path.getValidatedLabel(String label) with UTF-8 enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.3.1
    • 4.3
    • None

      If UTF-8 has been enabled, there are still a set of chars not accepted by SimpleUrlPattern (ex. ' char used everywhere by MS Word) .

      SimpleUrlPattern use regEx: [
      p

      {L}


      p

      {Mn}


      p

      {S}

      \\w!\"#$%&'*+,-./:; <=>?@`|~\\^\\(\\)

      {\\}

      \\[
      ]]

      Adding UTF-8 support this regEx shuold be inverted, so it should accept all chars except a specified set.
      the new regEx could be something like ^((?![<>]).)*$

        Acceptance criteria

              fgiust Fabrizio Giustina
              lucaboati Luca Boati
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD