Skip to content

Commit e6f8951

Browse files
committed
Fixes #9632. Adds res:// protocol to the list of local protocols.
1 parent e83fcdc commit e6f8951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var r20 = /%20/g,
77
rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
88
rinput = /^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
99
// #7653, #8125, #8152: local protocol detection
10-
rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|widget):$/,
10+
rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,
1111
rnoContent = /^(?:GET|HEAD)$/,
1212
rprotocol = /^\/\//,
1313
rquery = /\?/,

0 commit comments

Comments
 (0)