diff options
author | njhamann <njhamann@gmail.com> | 2013-08-24 13:02:17 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-11-13 22:53:15 -0500 |
commit | 0d68b7877f761264bfe4950e4df156b854925a6b (patch) | |
tree | 57bd0424e3ba45278fa1a8071d739e5fd3632b3a /src | |
parent | dce2edb3a615f9de158607c9f8be83809373940e (diff) | |
download | jquery-0d68b7877f761264bfe4950e4df156b854925a6b.tar.gz jquery-0d68b7877f761264bfe4950e4df156b854925a6b.zip |
Fix #14036. Remove user/pass from ajaxLocation. Close gh-1340.
Diffstat (limited to 'src')
-rw-r--r-- | src/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js index 15a5e9d3b..d39de2a9b 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) |