Skip to content

Commit

Permalink
censor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
NB-Core committed Nov 3, 2015
1 parent 6c37a5e commit 3eaa415
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/all_tables.php
Expand Up @@ -658,7 +658,7 @@ function get_all_tables(){
'extra'=>'auto_increment'
),
'section'=>array(
'name'=>'section', 'type'=>'varchar(20)', 'null'=>'1'
'name'=>'section', 'type'=>'varchar(30)', 'null'=>'1'
),
'author'=>array(
'name'=>'author', 'type'=>'int(11) unsigned', 'default'=>'0'
Expand Down
5 changes: 3 additions & 2 deletions lib/censor.php
Expand Up @@ -12,7 +12,7 @@ function soap($input,$debug=false,$skiphook=false){
// the mask of displayable chars that should be masked out;
// X displays, _ masks.
$mix_mask = str_pad("",strlen($output),"X");
if (getsetting("soap",1)){
if (getsetting("soap",1)|| 1 ){
$search = nasty_word_list();
$exceptions = array_flip(good_word_list());
$changed_content = false;
Expand Down Expand Up @@ -91,7 +91,8 @@ function good_word_list(){
}

function nasty_word_list(){
$search = datacache("nastywordlist",600);
//$search = datacache("nastywordlist",600);
// won't work anymore, no clue why. returns mostly empty array entires. So deactivate for now.
if ($search!==false && is_array($search)) return $search;

$sql = "SELECT * FROM " . db_prefix("nastywords") . " WHERE type='nasty'";
Expand Down

0 comments on commit 3eaa415

Please sign in to comment.