Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Adam Matoušek
BLO👏GÍ👏SEK
Commits
95dafa39
Verified
Commit
95dafa39
authored
Oct 15, 2022
by
Adam Matoušek
Browse files
fix loading password indices
parent
aef48026
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/_comment.cgi
View file @
95dafa39
...
...
@@ -65,7 +65,7 @@ unless ( $c{article} && $c{article} =~ m,^[-/a-z0-9]+$,
}
my
$comment_index
=
load_index
(
'
_comment_index
'
);
my
$password_index
=
load_index
(
'
_comment_passwords
'
);
my
$password_index
=
load_index
(
'
_comment_passwords
'
,
1
);
unless
(
$password_index
->
{
$c
{
article
}}
# comments are enabled
&&
(
!
$c
{
parent
}
||
$comment_index
->
{
$c
{
article
}}{
$c
{
parent
}}
)
)
# parent exists
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment