kopia lustrzana https://github.com/c9/core
rodzic
edbd8fc19d
commit
b3a10c72c2
|
@ -16,8 +16,10 @@ module.exports = function(options, imports, register) {
|
||||||
imports.connect.addResponseMethod("secureRedirect", function(location) {
|
imports.connect.addResponseMethod("secureRedirect", function(location) {
|
||||||
var parsedLocation = url.parse(location, false, true);
|
var parsedLocation = url.parse(location, false, true);
|
||||||
|
|
||||||
if (!trustedDomainsRe.test(parsedLocation.host))
|
if (!trustedDomainsRe.test(parsedLocation.host)) {
|
||||||
|
console.log("Avoiding untrusted redirect to", parsedLocation.host)
|
||||||
location = parsedLocation.path || "/";
|
location = parsedLocation.path || "/";
|
||||||
|
}
|
||||||
|
|
||||||
this.redirect(location);
|
this.redirect(location);
|
||||||
});
|
});
|
||||||
|
|
|
@ -59,6 +59,7 @@
|
||||||
],
|
],
|
||||||
"c9plugins": {
|
"c9plugins": {
|
||||||
"c9.ide.language": "#79bcb2fe06",
|
"c9.ide.language": "#79bcb2fe06",
|
||||||
|
"c9.ide.language.core": "#undefined",
|
||||||
"c9.ide.language.css": "#be07d72209",
|
"c9.ide.language.css": "#be07d72209",
|
||||||
"c9.ide.language.generic": "#3949510863",
|
"c9.ide.language.generic": "#3949510863",
|
||||||
"c9.ide.language.html": "#22fdc74869",
|
"c9.ide.language.html": "#22fdc74869",
|
||||||
|
|
Ładowanie…
Reference in New Issue