root

Changeset 349

Show
Ignore:
Timestamp:
10/30/08 13:32:51 (2 years ago)
Author:
wbond
Message:

More fixes to fURL::makeFriendly() and fFilesystem::makeURLSafe()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fFilesystem.php

    r344 r349 Hide Line Numbers
    308308    static public function makeURLSafe($filename) 
    309309    { 
    310         return preg_replace('#[^a-z0-9\-\.]+#', '_', strtolower(trim($filename)));   
     310        $filename = strtolower(trim($filename)); 
     311        $filename = str_replace("'", '', $filename); 
     312        return preg_replace('#[^a-z0-9\-\.]+#', '_', $filename);     
    311313    } 
    312314     
  • fURL.php

    r345 r349 Hide Line Numbers
    8787        $string = fHTML::decode(fUTF8::ascii($string)); 
    8888        $string = strtolower(trim($string)); 
     89        $string = str_replace("'", '', $string); 
    8990        $string = preg_replace('#[^a-z0-9\-]+#', '_', $string); 
    9091        return preg_replace('#_+$#', '', $string);