mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Remove unused strict_html_parser (it's moved to JavaScript)
This commit is contained in:
parent
765150c19a
commit
1d6dad8f4f
3 changed files with 0 additions and 50 deletions
|
|
@ -21,11 +21,6 @@ class Config
|
||||||
*/
|
*/
|
||||||
public static $HtmlStrictAllowedTags = null;
|
public static $HtmlStrictAllowedTags = null;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var array|null
|
|
||||||
*/
|
|
||||||
public static $HtmlStrictAllowedAttributes = null;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var boolean
|
* @var boolean
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -118,50 +118,6 @@ class Api
|
||||||
\MailSo\Config::$HtmlStrictDebug = !!static::Config()->Get('debug', 'enable', false);
|
\MailSo\Config::$HtmlStrictDebug = !!static::Config()->Get('debug', 'enable', false);
|
||||||
|
|
||||||
\MailSo\Config::$CheckNewMessages = !!static::Config()->Get('labs', 'check_new_messages', true);
|
\MailSo\Config::$CheckNewMessages = !!static::Config()->Get('labs', 'check_new_messages', true);
|
||||||
|
|
||||||
if (static::Config()->Get('labs', 'strict_html_parser', true))
|
|
||||||
{
|
|
||||||
\MailSo\Config::$HtmlStrictAllowedAttributes = array(
|
|
||||||
// defaults
|
|
||||||
'name',
|
|
||||||
'dir', 'lang', 'style', 'title',
|
|
||||||
'background', 'bgcolor', 'alt', 'height', 'width', 'src', 'href',
|
|
||||||
'border', 'bordercolor', 'charset', 'direction', 'language',
|
|
||||||
// a
|
|
||||||
'coords', 'download', 'hreflang', 'shape',
|
|
||||||
// body
|
|
||||||
'alink', 'bgproperties', 'bottommargin', 'leftmargin', 'link', 'rightmargin', 'text', 'topmargin', 'vlink',
|
|
||||||
'marginwidth', 'marginheight', 'offset',
|
|
||||||
// button,
|
|
||||||
'disabled', 'type', 'value',
|
|
||||||
// col
|
|
||||||
'align', 'valign',
|
|
||||||
// font
|
|
||||||
'color', 'face', 'size',
|
|
||||||
// form
|
|
||||||
'novalidate',
|
|
||||||
// hr
|
|
||||||
'noshade',
|
|
||||||
// img
|
|
||||||
'hspace', 'sizes', 'srcset', 'vspace', 'usemap',
|
|
||||||
// input, textarea
|
|
||||||
'checked', 'max', 'min', 'maxlength', 'multiple', 'pattern', 'placeholder', 'readonly', 'required', 'step', 'wrap',
|
|
||||||
// label
|
|
||||||
'for',
|
|
||||||
// meter
|
|
||||||
'low', 'high', 'optimum',
|
|
||||||
// ol
|
|
||||||
'reversed', 'start',
|
|
||||||
// option
|
|
||||||
'selected', 'label',
|
|
||||||
// table
|
|
||||||
'cols', 'rows', 'frame', 'rules', 'summary', 'cellpadding', 'cellspacing',
|
|
||||||
// th
|
|
||||||
'abbr', 'scope',
|
|
||||||
// td
|
|
||||||
'axis', 'colspan', 'rowspan', 'headers', 'nowrap'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -384,7 +384,6 @@ Enables caching in the system'),
|
||||||
'cookie_default_secure' => array(false),
|
'cookie_default_secure' => array(false),
|
||||||
'check_new_messages' => array(true),
|
'check_new_messages' => array(true),
|
||||||
'replace_env_in_configuration' => array(''),
|
'replace_env_in_configuration' => array(''),
|
||||||
'strict_html_parser' => array(false),
|
|
||||||
'boundary_prefix' => array(''),
|
'boundary_prefix' => array(''),
|
||||||
'kolab_enabled' => array(false),
|
'kolab_enabled' => array(false),
|
||||||
'dev_email' => array(''),
|
'dev_email' => array(''),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue