You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Emond Papegaaij (JIRA)" <ji...@apache.org> on 2017/05/24 12:02:04 UTC

[jira] [Created] (WICKET-6376) Ajax redirects to non http(s)-urls are interpreted as relative

Emond Papegaaij created WICKET-6376:
---------------------------------------

             Summary: Ajax redirects to non http(s)-urls are interpreted as relative
                 Key: WICKET-6376
                 URL: https://issues.apache.org/jira/browse/WICKET-6376
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 8.0.0-M6, 7.7.0
            Reporter: Emond Papegaaij
            Priority: Minor


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:
{code}
var withScheme  = /^[a-z][a-z0-9+.-]*:\/\//;  // checks whether the string starts with a scheme
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)