Merge remote-tracking branch 'origin/dev-v7' into 7.4.0

This commit is contained in:
Shannon
2015-12-28 10:19:24 +01:00
3 changed files with 13 additions and 1 deletions

View File

@@ -22,6 +22,11 @@
var parser = document.createElement('a');
parser.href = parts[1];
// This next line may seem redundant but is required to get around a bug in IE
// that doesn't set the parser.hostname or parser.protocol correctly for relative URLs.
// See https://gist.github.com/jlong/2428561#gistcomment-1461205
parser.href = parser.href;
// => "http:"
if (!parser.protocol || (parser.protocol.toLowerCase() !== "http:" && parser.protocol.toLowerCase() !== "https:")) {
throw "invalid protocol";

View File

@@ -15,6 +15,11 @@
var parser = document.createElement('a');
parser.href = window.location.search.substring(1);
// This next line may seem redundant but is required to get around a bug in IE
// that doesn't set the parser.hostname or parser.protocol correctly for relative URLs.
// see https://gist.github.com/jlong/2428561#gistcomment-1461205
parser.href = parser.href;
// => "http:"
if (parser.protocol && (parser.protocol.toLowerCase() != "http:" && parser.protocol.toLowerCase() != "https:")) {
throw "invalid protocol";

View File

@@ -214,7 +214,9 @@
<remove fileExtension=".less" />
<mimeMap fileExtension=".less" mimeType="text/css" />
<remove fileExtension=".mp4" />
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
<remove fileExtension=".json" />
<mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
<!-- Ensure the powered by header is not returned -->