Show
Ignore:
Timestamp:
10/27/05 07:51:40 (3 years ago)
Author:
mdodoo
Message:

Trims URLs and descriptions in order to make feeds that include weird spacing mechanisms work. Fixes #238. This is my first changeset in Linux (using svn from the command line), so I hope I did not do anything wrong.

This commit took me at least 20 minutes. I hate svn.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rss/cls/items.php

    r984 r986  
    7373        } 
    7474        $this->escapedTitle = preg_replace("/[^A-Za-z0-9%\.]/", "_", utf8_uri_encode($title)); 
    75         $this->url = $url; 
     75        $this->url = trim($url); 
    7676        $this->enclosure = $enclosure; 
    7777        $this->feed = $parent; 
    7878        $this->author = $author; 
    7979        if ($description) { 
    80             $this->description = $description; 
     80            $this->description = trim($description); 
    8181        } elseif($title) { 
    8282            $this -> description = $title;