Fix #14036. Remove user/pass from ajaxLocation. Close gh-1340.

This commit is contained in:
njhamann 2013-08-24 13:02:17 -04:00 committed by Dave Methvin
parent dce2edb3a6
commit 0d68b7877f
2 changed files with 3 additions and 1 deletions

View File

@ -176,3 +176,5 @@ Jeremy Dunck <jdunck@gmail.com>
Chris Price <price.c@gmail.com>
Guy Bedford <guybedford@gmail.com>
Amey Sakhadeo <me@ameyms.com>
Noah Hamann <njhamann@gmail.com>

View File

@ -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)