added: bbcode
files: core/bbcodeparser.h core/bbcodeparser.cpp git-svn-id: svn://ttmath.org/publicrep/winix/trunk@615 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -485,7 +485,7 @@ void Request::SendPage(bool compressing, const std::string & source_ref)
|
||||
html_filter.TrimWhite(true);
|
||||
html_filter.BreakLines(60);
|
||||
html_filter.InsertTabs(2);
|
||||
html_filter.CheckOrphans(HTMLFilter::lang_pl, HTMLFilter::orphan_nbspace);
|
||||
html_filter.CheckOrphans(HTMLFilter::lang_pl, HTMLFilter::orphan_160space);
|
||||
|
||||
html_filter.Filter(*source, clean_html);
|
||||
source = &clean_html;
|
||||
@@ -926,7 +926,8 @@ bool Request::CanUseHtml(long user_id)
|
||||
|
||||
bool Request::CanUseBBCode(long user_id)
|
||||
{
|
||||
return CanUse(user_id, "allow_bbcode");
|
||||
// logged users can use bbcode
|
||||
return (user_id != -1);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user