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

Ajax redirects to non http(s)-urls are interpreted as relative

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 7.7.0, 8.0.0-M6
    • 7.8.0, 8.0.0-M7
    • wicket
    • None

    Description

      wicket-ajax-jquery.js (processAjaxResponse) only understands http:// and https:// as schemes. This makes it impossible to redirect to other schemes, like chrome-extension://. I propose to change the regular expression to:

      var withScheme  = /^[a-z][a-z0-9+.-]*:\/\//;  // checks whether the string starts with a scheme
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            papegaaij Emond Papegaaij
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: