Comparing version 2.15.1 to 2.15.2
2.15.2 / 2024-03-21 | ||
================== | ||
**fixes** | ||
* [[`94e8def`](http://github.com/koajs/koa/commit/94e8def4bf6a2bdabe96583de989f03d75106648)] - fix: handle upper case protocol like HTTP or HTTPS (#1806) (fengmk2 <<suqian.yf@antgroup.com>>) | ||
2.15.1 / 2024-03-15 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -264,3 +264,3 @@ | ||
if ('back' === url) url = this.ctx.get('Referrer') || alt || '/'; | ||
if (url.startsWith('https://') || url.startsWith('http://')) { | ||
if (/^https?:\/\//i.test(url)) { | ||
// formatting url again avoid security escapes | ||
@@ -267,0 +267,0 @@ url = new URL(url).toString(); |
{ | ||
"name": "koa", | ||
"version": "2.15.1", | ||
"version": "2.15.2", | ||
"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
96293