diff --git a/AUTHORS.txt b/AUTHORS.txt index 74a1b912b..b2d21df46 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -172,3 +172,4 @@ Terry Jones Jeremy Dunck Chris Price Amey Sakhadeo +Noah Hamann diff --git a/src/ajax.js b/src/ajax.js index 174e8274d..1b01fd6a5 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -21,7 +21,7 @@ var rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, rnoContent = /^(?:GET|HEAD)$/, rprotocol = /^\/\//, - rurl = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, + rurl = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/, /* Prefilters * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)