mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-24 17:13:01 +00:00
Bugfix: fix crash when attempting to leave a top-level comment
This commit is contained in:
parent
75e2abce0f
commit
439187139d
2 changed files with 3 additions and 2 deletions
|
@ -9,6 +9,7 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t
|
|||
|
||||
### Fixed
|
||||
- Stats: Fix crash when loading the stats page
|
||||
- Fix crash when leaving a top-level comment
|
||||
- [security] Fixed an XSS vulnerability in the `format` GET parameter of the `stats` action (thanks, @JamieSlome)
|
||||
- [security] Ensured that the `returnto` GET parameter leads you only to another place on your Pepperminty Wiki instance (thanks, @JamieSlome)
|
||||
- [security] Ensure that Javascript in SVGs never gets executed (it's too challenging to strip it, since it could be lurking in many different places - according to [this answer](https://stackoverflow.com/a/68505306/1460422) even Inkscape doesn't strip all Javascript when asked to)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
register_module([
|
||||
"name" => "Page Comments",
|
||||
"version" => "0.3.4",
|
||||
"version" => "0.3.5",
|
||||
"author" => "Starbeamrainbowlabs",
|
||||
"description" => "Adds threaded comments to the bottom of every page.",
|
||||
"id" => "feature-comments",
|
||||
|
@ -134,7 +134,7 @@ register_module([
|
|||
"timestamp" => time(),
|
||||
"page" => $env->page,
|
||||
"user" => $env->user,
|
||||
"reply_depth" => count($comment_thread),
|
||||
"reply_depth" => $comment_thread !== null ? count($comment_thread) : 0,
|
||||
"comment_id" => $new_comment->id
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue