Prohibit SVG, at the moment is unsafe
This commit is contained in:
parent
fd625f45b5
commit
ca04b877f4
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ use RuntimeException;
|
|||
class Attachments extends Manager
|
||||
{
|
||||
const HTML_CONT = '<!DOCTYPE html><html lang="en"><head><title>.</title></head><body>.</body></html>';
|
||||
const BAD_EXTS = '%^(?:php.*|phar|[ps]?html?|jsp?|htaccess|htpasswd|f?cgi|)$%i';
|
||||
const BAD_EXTS = '%^(?:php.*|phar|[ps]?html?|jsp?|htaccess|htpasswd|f?cgi|svg|)$%i';
|
||||
const FOLDER = '/upload/';
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue