From 50e950a96e0fae23a1ae418951a298e2949ff351 Mon Sep 17 00:00:00 2001 From: jaubourg Date: Thu, 3 Feb 2011 05:19:15 +0100 Subject: [PATCH] Fixes #7653. Changes regexp to detect local protocol so that it will accept any protocol finishing by -extension. --- src/ajax.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ajax.js b/src/ajax.js index 08bd9d1..4b3ab76 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -6,8 +6,8 @@ var r20 = /%20/g, rhash = /#.*$/, rheaders = /^(.*?):\s*(.*?)\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, - // #8125, #8152: local protocol detection - rlocalProtocol = /^(file|chrome\-extension):$/, + // #7653, #8125, #8152: local protocol detection + rlocalProtocol = /(?:^file|\-extension):$/, rnoContent = /^(?:GET|HEAD)$/, rprotocol = /^\/\//, rquery = /\?/, -- 1.7.10.4