aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authornjhamann <njhamann@gmail.com>2013-08-24 13:02:17 -0400
committerDave Methvin <dave.methvin@gmail.com>2013-11-13 22:53:15 -0500
commit0d68b7877f761264bfe4950e4df156b854925a6b (patch)
tree57bd0424e3ba45278fa1a8071d739e5fd3632b3a /src
parentdce2edb3a615f9de158607c9f8be83809373940e (diff)
downloadjquery-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.js2
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)