]> source.dussan.org Git - jquery.git/commitdiff
Fixes #9632. Adds res:// protocol to the list of local protocols.
authorjaubourg <j@ubourg.net>
Fri, 1 Jul 2011 00:18:05 +0000 (02:18 +0200)
committerjaubourg <j@ubourg.net>
Fri, 1 Jul 2011 00:18:05 +0000 (02:18 +0200)
src/ajax.js

index 650f33184aa97cd15fc91af09279b2d47dac2bf9..087f2febfb9ff856ddbfccba02fb051a871f52b9 100644 (file)
@@ -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 = /\?/,