Skip to content

Commit 4cd7bad

Browse files
committed
1 parent 1f1411f commit 4cd7bad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: file/edit_html.cgi

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ if ($in{'text'} || $in{'file'} && !&is_html_file($in{'file'})) {
1212
$text_mode = 1;
1313
}
1414

15+
if (!&can_access($in{'file'})) {
16+
# ACL rules prevent access to file
17+
&error_exit(&text('view_eaccess', &html_escape($in{'file'})));
18+
}
19+
1520
&popup_header($in{'file'} ? $text{'html_title'} : $text{'html_title2'},
1621
undef, $text_mode ? undef : "onload='xinha_init()'");
1722

0 commit comments

Comments
 (0)