Add option to apply rel="nofollow" to all user-submitted links

참고: xpressengine/xe-core#2278

정상적인 사이트들 사이의 상호 교류를 저해할 위험이 있으므로
옵션으로 제공하고 기본값은 OFF로 함.
This commit is contained in:
Kijin Sung 2018-10-02 15:17:23 +09:00
parent 1a2f6e5513
commit 64bc9205ff
7 changed files with 19 additions and 0 deletions

View file

@ -149,6 +149,7 @@ class HTMLFilter
$config->set('Core.Encoding', 'UTF-8');
$config->set('HTML.Doctype', 'XHTML 1.0 Transitional');
$config->set('HTML.FlashAllowFullScreen', true);
$config->set('HTML.Nofollow', config('security.nofollow') ? true : false);
$config->set('HTML.MaxImgLength', null);
$config->set('CSS.MaxImgLength', null);
$config->set('CSS.Proprietary', true);