Diff for /cdn/www/annotate.html between versions 1.43 and 1.45

version 1.43, 2003/03/25 09:49:19 version 1.45, 2003/03/25 09:56:17
Line 35  function cleanse ($message, $name = fals Line 35  function cleanse ($message, $name = fals
   
   for ($i=0; $cursed[$i] != ''; $i++) {    for ($i=0; $cursed[$i] != ''; $i++) {
   
     if ($name)  
       $cursed[$i] = '[!!]?' . $cursed[$i];  
   
     // whitespace, however currently turns '\n' to ' '      // whitespace, however currently turns '\n' to ' '
     $cursed[$i] = '[\ ]+' . $cursed[$i];      $cursed[$i] = '[\ ]+' . $cursed[$i];
   
     shuffle($replacements);      shuffle($replacements);
     $repstring = $replacements[0] . $replacements[2] . $replacements[5] .      $repstring = $replacements[0] . $replacements[2] . $replacements[5] .
                  $replacements[1] . $replacements[3];                   $replacements[1] . $replacements[3];
Line 201  define ('THIS_PAGE', 'http://' . PROJECT Line 199  define ('THIS_PAGE', 'http://' . PROJECT
 if ( $_POST['message'] && $_POST['name'] && !$hide_text_control )  if ( $_POST['message'] && $_POST['name'] && !$hide_text_control )
 {  {
         // censor name to be on safe side          // censor name to be on safe side
        $name = trim( cleanse('!!' . $name), true );        $name = trim( cleanse(' ' . $name), true );
   
   
         // censor message text          // censor message text
Line 271  if ( $_POST['message'] && $_POST['name'] Line 269  if ( $_POST['message'] && $_POST['name']
         if ( !empty($target_page) ): $target_page = ' [' . $target_page . ']'; endif;          if ( !empty($target_page) ): $target_page = ' [' . $target_page . ']'; endif;
   
   
        $name = ereg_replace('^!!', '', $name);//        $name = ereg_replace('^\ ', '', $name);
         $name = ereg_replace('<[^>]+>', '', $name);          $name = ereg_replace('<[^>]+>', '', $name);
   
         // pre-process name          // pre-process name

Removed from v.1.43  
changed lines
  Added in v.1.45


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>