Changeset 1617

Show
Ignore:
Timestamp:
12/04/2006 07:10:45 AM (2 years ago)
Author:
jeena
Message:

closed #4

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/log.php

    r1595 r1617  
    172172      if(JLOG_INFO_BY_COMMENT === true) { 
    173173       $mail['headers'] = "From: "; 
    174        if(isset($com_form['name'])) $mail['headers'] .= $com_form['name']; 
     174       if(!empty($com_form['name'])) $mail['headers'] .= str_replace(array("\n", "\r"), "", $com_form['name']); 
    175175       else $mail['headers'] .= $l['admin']['comments_anonym']; 
    176        if(isset($com_form['email'])) $mail['headers'] .= " <".$com_form['email'].">"; 
     176       if(!empty($com_form['email'])) $mail['headers'] .= " <".str_replace(array("\n", "\r"), "", $com_form['email']).">"; 
    177177       $mail['headers'] .= "\r\nX-Mailer: PHP/".phpversion(); 
    178178 
    179179 
    180180       $mail['text'] = $l['admin']['comments_mail_txt']." »".$blogentry['topic']."«\n- -\n"; 
    181        if(isset($com_form['name'])) $mail['text'] .= $com_form['name']; 
     181       if(!empty($com_form['name'])) $mail['text'] .= $com_form['name']; 
    182182       else $mail['text'] .= $l['admin']['comments_anonym']; 
    183        if(isset($com_form['city'])) $mail['text'] .= " ".$l['comments_from']." ".$com_form['city']; 
     183       if(!empty($com_form['city'])) $mail['text'] .= " ".$l['comments_from']." ".$com_form['city']; 
    184184       $mail['text'] .= " ".$l['admin']['comments_posted']." ".$date.":\n\n"; 
    185185       $mail['text'] .= html_entity_decode(strip_tags($bbcomments->parse($com_form['content'])));