From: jaubourg Date: Fri, 1 Jul 2011 00:18:05 +0000 (+0200) Subject: Fixes #9632. Adds res:// protocol to the list of local protocols. X-Git-Tag: 1.6.3rc1~50 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e6f8951983b8ce1af8986651fd412f9e569504c6;p=jquery.git Fixes #9632. Adds res:// protocol to the list of local protocols. --- diff --git a/src/ajax.js b/src/ajax.js index 650f33184..087f2febf 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -7,7 +7,7 @@ var r20 = /%20/g, rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL rinput = /^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i, // #7653, #8125, #8152: local protocol detection - rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|widget):$/, + rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/, rnoContent = /^(?:GET|HEAD)$/, rprotocol = /^\/\//, rquery = /\?/,