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

oops: White list canned attachments for realz

parent 3e47a230
No related branches found
No related tags found
No related merge requests found
......@@ -134,6 +134,7 @@ extends VerySimpleModel {
$resp['files'] = array();
foreach ($this->getAttachedFiles(!$html) as $file) {
$_SESSION[':cannedFiles'][$file->id] = 1;
$resp['files'][] = array(
'id' => $file->id,
'name' => $file->name,
......@@ -146,9 +147,6 @@ extends VerySimpleModel {
$resp['response'] = Format::html2text($resp['response'], 90);
}
foreach ($resp['files'] as $f)
$_SESSION[':cannedFiles'][$f['file_id']] = 1;
return Format::json_encode($resp);
break;
case 'html':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment