Skip to content

Commit 0d68b78

Browse files
njhamanndmethvin
authored andcommitted
Fix #14036. Remove user/pass from ajaxLocation. Close jquerygh-1340.
1 parent dce2edb commit 0d68b78

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

AUTHORS.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,5 @@ Jeremy Dunck <[email protected]>
176176
Chris Price <[email protected]>
177177
Guy Bedford <[email protected]>
178178
Amey Sakhadeo <[email protected]>
179+
Noah Hamann <[email protected]>
180+

src/ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var
2121
rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
2222
rnoContent = /^(?:GET|HEAD)$/,
2323
rprotocol = /^\/\//,
24-
rurl = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,
24+
rurl = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,
2525

2626
/* Prefilters
2727
* 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)

0 commit comments

Comments
 (0)