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

(cherry picked from commit eb1a2afc9fb1d990d10358aab0e17bc0ce1d1db3)
This commit is contained in:
njhamann 2013-08-24 13:02:17 -04:00 committed by Dave Methvin
parent 97d53838e0
commit c58a6435ef
2 changed files with 2 additions and 1 deletions

View File

@ -172,3 +172,4 @@ Terry Jones <terry@jon.es>
Jeremy Dunck <jdunck@gmail.com>
Chris Price <price.c@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)