Changeset 1628

Show
Ignore:
Timestamp:
01/06/2007 08:20:56 PM (2 years ago)
Author:
jeena
Message:

disabled htmlspecialchars on pingback

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/admin/comments.php

    r1626 r1628  
    177177    while ($daten = $comments->fetch()) { 
    178178                         
    179       if(!empty($daten['name'])) $daten['name'] = htmlspecialchars($daten['name'], ENT_QUOTES);  
    180       else $daten['name'] = $l['comments_anonym'];  
     179      if(empty($daten['name'])) $daten['name'] = $l['comments_anonym']; 
     180                        elseif($daten['type'] != 'pingback') $daten['name'] = htmlspecialchars($daten['name'], ENT_QUOTES); 
     181 
    181182      if(!empty($daten['email'])) {  
    182183        $email_a = "<a href='mailto:".$daten['email']."'>";  
  • trunk/xmlrpc.php

    r1627 r1628  
    110110              $utf8 = 'application/xhtml+xml' == strtolower(trim($s->getResponseHeader("Content-Type"))); 
    111111 
    112             $this->title = empty($title[1]) ? $this->sourceURI : $utf8 ? utf8_decode($title[1]) : html_entity_decode($title[1]); 
     112            $this->title = empty($title[1]) ? $this->sourceURI : html_entity_decode($utf8 ? utf8_decode($title[1]) : $title[1]); 
    113113        } 
    114114