]> source.dussan.org Git - jquery.git/commitdiff
Fix #14036. Remove user/pass from ajaxLocation. Close gh-1340.
authornjhamann <njhamann@gmail.com>
Sat, 24 Aug 2013 17:02:17 +0000 (13:02 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Thu, 14 Nov 2013 03:55:12 +0000 (22:55 -0500)
(cherry picked from commit eb1a2afc9fb1d990d10358aab0e17bc0ce1d1db3)

AUTHORS.txt
src/ajax.js

index 74a1b912bf48610422a0223a35a3f21cb2e5a21d..b2d21df4627cd157107e44ee5b8b7206f773ea60 100644 (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>
index 174e8274dafab0ed1b2aa6449060f6f7840b4559..1b01fd6a5474dcd7717697dbe0290338d712d000 100644 (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)