Show
Ignore:
Timestamp:
01/02/07 14:24:57 (23 months ago)
Author:
mbonetti
Message:

More uniform handling of UTF-8 uri generation. Will probably need better
filtering in rss_uri(). Fix for #150, too.

Files:
1 modified

Legend:

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

    r1561 r1648  
    7373            $this->title = "[nt]"; 
    7474        } 
    75         $this->escapedTitle = preg_replace("/[^A-Za-z0-9%\.]/", "_", utf8_uri_encode($title)); 
     75        $this->escapedTitle = rss_uri($title); //preg_replace("/[^A-Za-z0-9%\.]/", "_", utf8_uri_encode($title)); 
     76         
    7677        $this->url = trim($url); 
    7778        $this->enclosure = $enclosure; 
     
    136137            $this->iconUrl = $icon; 
    137138        } 
    138         $this->escapedTitle = preg_replace("/[^A-Za-z0-9\.]/", "_", $title); 
     139        //$this->escapedTitle = preg_replace("/[^A-Za-z0-9\.]/", "_", $title); 
     140        $this->escapedTitle = rss_uri($title); 
    139141    }  
    140142