Skip to content

Commit 0d10dc2

Browse files
committed
v2.0.3
1 parent e58e918 commit 0d10dc2

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mithril.js [![npm Version](https://img.shields.io/npm/v/mithril.svg)](https://ww
1818

1919
## What is Mithril?
2020

21-
A modern client-side Javascript framework for building Single Page Applications. It's small (<!-- size -->9.77 KB<!-- /size --> gzipped), fast and provides routing and XHR utilities out of the box.
21+
A modern client-side Javascript framework for building Single Page Applications. It's small (<!-- size -->9.78 KB<!-- /size --> gzipped), fast and provides routing and XHR utilities out of the box.
2222

2323
Mithril is used by companies like Vimeo and Nike, and open source platforms like Lichess 👍.
2424

docs/change-log.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Change log
22

3+
- [v2.0.3](#v203)
34
- [v2.0.1](#v201)
45
- [v2.0.0](#v200)
56
- [Migrating from v1.x](migration-v1x.md)
@@ -18,11 +19,13 @@
1819
1920
-->
2021

21-
### v2.0.2
22+
### v2.0.3
2223

2324
- Ensure vnodes are removed correctly in the face of `onbeforeremove` resolving after new nodes are added ([#2492](https://github.com/MithrilJS/mithril.js/pull/2492) [@isiahmeadows](https://github.com/isiahmeadows))
2425
- Fix prototype pollution vulnerability in `m.parseQueryString` ([#2494](https://github.com/MithrilJS/mithril.js/pull/2494) [@isiahmeadows](https://github.com/isiahmeadows))
2526

27+
*v2.0.2 was skipped as it had a critical flaw and was immediately unpublished.*
28+
2629
### v2.0.1
2730

2831
Same as v2.0.0, but with a publish that didn't have a botched upload.

mithril.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,6 @@ var parseQueryString = function(string) {
15101510
for (var j0 = 0; j0 < levels.length; j0++) {
15111511
var level = levels[j0], nextLevel = levels[j0 + 1]
15121512
var isNumber = nextLevel == "" || !isNaN(parseInt(nextLevel, 10))
1513-
var isValue = j0 === levels.length - 1
15141513
if (level === "") {
15151514
var key5 = levels.slice(0, j0).join()
15161515
if (counters[key5] == null) {
@@ -1520,15 +1519,15 @@ var parseQueryString = function(string) {
15201519
}
15211520
// Disallow direct prototype pollution
15221521
else if (level === "__proto__") break
1523-
if (isValue) cursor[level] = value2
1522+
if (j0 === levels.length - 1) cursor[level] = value2
15241523
else {
15251524
// Read own properties exclusively to disallow indirect
15261525
// prototype pollution
1527-
value2 = Object.getOwnPropertyDescriptor(cursor, level)
1528-
if (value2 != null) value2 = value2.value
1529-
if (value2 == null) value2 = cursor[level] = isNumber ? [] : {}
1526+
var desc = Object.getOwnPropertyDescriptor(cursor, level)
1527+
if (desc != null) desc = desc.value
1528+
if (desc == null) cursor[level] = desc = isNumber ? [] : {}
1529+
cursor = desc
15301530
}
1531-
cursor = value2
15321531
}
15331532
}
15341533
return data0

mithril.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mithril",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"description": "A framework for building brilliant applications",
55
"author": "Leo Horie",
66
"license": "MIT",

0 commit comments

Comments
 (0)