]> 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:53:15 +0000 (22:53 -0500)
AUTHORS.txt
src/ajax.js

index 01bb1f804c0a392e24195792c1c045b92e29b5c7..04e0542dd01f14e661bc92ea6da891d7e99ad833 100644 (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>
+
index 15a5e9d3b430aa0b0764da35b05e4b9572c8f200..d39de2a9b3d9924fa2f463c6b96473499e09edd6 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)