Diff for /cdn/www/annotate.html between versions 1.39 and 1.40

version 1.39, 2003/03/25 09:21:04 version 1.40, 2003/03/25 09:40:59
Line 197  define ('THIS_PAGE', 'http://' . PROJECT Line 197  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 267  if ( $_POST['message'] && $_POST['name'] Line 267  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);
   
         // pre-process name          // pre-process name
         $name_html  = htmlspecialchars($name);          $name_html  = htmlspecialchars($name);
   

Removed from v.1.39  
changed lines
  Added in v.1.40


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