Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-675

quickEdit couldn't work when input Chinese

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.8.4
    • 2.8.5, 3.0, 2.9
    • Localization
    • None
    • ubuntu10.04, jdk6r2, jspwiki2.8.4

    Description

      When I input some Chinese, and click "quickEdit", it turns to an error page with the url as "http://localhost:8080/wiki/Login?redirect=". No parameters.

      I checked the flie named jspwiki-common.js, found that the function cleanLink() couldn't recognize the Chinese with the regex.

      When I modify the regex from "^A-Za-z0-9()&,=.$" to "^A-Za-z0-9\u4e00\u9fa5()&,-=.$", It works.

      I think that this method may work with other languages.

      Attachments

        Issue Links

          Activity

            People

              brushed Dirk Frederickx
              tonylin Tony Lin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: