Comparing version 2.0.13-alpha.4 to 2.0.13-alpha.5
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -6,2 +9,3 @@ exports.KauthProvider = void 0; | ||
const url_1 = require("url"); | ||
const path_1 = __importDefault(require("path")); | ||
class KauthProvider { | ||
@@ -92,3 +96,4 @@ maxAge = 2147483647; | ||
}); | ||
if (callback) { | ||
// for security reason, onlt allow relative path | ||
if (callback && path_1.default.normalize(callback).startsWith('/')) { | ||
ctx.redirect(callback); | ||
@@ -95,0 +100,0 @@ return; |
{ | ||
"name": "egg-kauth", | ||
"version": "2.0.13-alpha.4", | ||
"version": "2.0.13-alpha.5", | ||
"description": "egg kauth plugin", | ||
@@ -5,0 +5,0 @@ "eggPlugin": { |
27398
632