Comparing version 2.15.0 to 2.15.1
@@ -264,2 +264,6 @@ | ||
if ('back' === url) url = this.ctx.get('Referrer') || alt || '/'; | ||
if (url.startsWith('https://') || url.startsWith('http://')) { | ||
// formatting url again avoid security escapes | ||
url = new URL(url).toString(); | ||
} | ||
this.set('Location', encodeUrl(url)); | ||
@@ -266,0 +270,0 @@ |
{ | ||
"name": "koa", | ||
"version": "2.15.0", | ||
"version": "2.15.1", | ||
"description": "Koa web app framework", | ||
@@ -5,0 +5,0 @@ "main": "lib/application.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96079
9
1621