Changeset 1648 for trunk/gregarius/cls

Show
Ignore:
Timestamp:
01/02/07 14:24:57 (20 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.

Location:
trunk/gregarius/cls
Files:
2 modified

Legend:

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

    r1644 r1648  
    9090            //$this->rlink = getPath().preg_replace("/[^a-zA-Z0-9_]/", "_", $title)."/"; 
    9191            /* EXPERIMENTAL! */ 
    92             $this->rlink = getPath() . utf8_uri_encode(preg_replace('/[\s&\/\+]/','_',$title)) . "/"; 
     92            $this->rlink = getPath(rss_uri($title)) . "/"; 
    9393        } else { 
    9494            $this->rlink = getPath()."feed.php?channel=$id"; 
  • 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