Skip to content
Snippets Groups Projects
Commit 4c1d710e authored by Peter Rotich's avatar Peter Rotich
Browse files

files: Whitelist canned reply files

parent 09a12d84
No related branches found
No related tags found
No related merge requests found
......@@ -2388,8 +2388,10 @@ implements RestrictedAccess, Threadable {
return false;
}
$files = array();
foreach ($canned->attachments->getAll() as $file)
foreach ($canned->attachments->getAll() as $file) {
$files[] = $file->file_id;
$_SESSION[':cannedFiles'][$file->file_id] = 1;
}
if ($cfg->isRichTextEnabled())
$response = new HtmlThreadEntryBody(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment