Piwigo Bugtracker

Piwigo bug tracker has moved to Github

This bugtracker is kept to provide history on old issues.


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000581Piwigouploadpublic2006.11.12 23:082012.10.22 17:54
Reporterhixcks 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version1.6.1 
Target VersionFixed in Version2.4.0 
Summary0000581: Accept files with blank in the name or national characters (é, è ,î ....) (Even windows works with these files ;) )
Descriptionor adding function which automatically rename the file.

Like

     function suppespace ($str1) {
        $search = array ("'\s'");
        $replace = array ("");
        $text = preg_replace($search, $replace, $str1);
        return $text;
    }


    function suppaccents ($str1) {
        $search = array ("/é/",
                         "/è/",
                         "/ê/",
                         "/à/",
                         "/â/",
                         "/î/",
                         "/ô/",
                         "/ç/"
                         );
        
        $replace = array ("e",
                          "e",
                          "e",
                          "a",
                          "a",
                          "i",
                          "o",
                          "c"
                          );
        
        $text = preg_replace($search, $replace, $str1);
        //logDate("suppaccents" . $str1. "=>" . $text);
        return $text;
    }


PS: I've just discover the 1.6.2. All my apologies, if it is already included in it .

Regards,
Hixcks

TagsNo tags attached.
browserany
Database engine and version
PHP version
Web serverApache 1.3.x
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2006.11.12 23:08 hixcks New Issue
2006.11.12 23:08 hixcks browser => any
2006.11.12 23:08 hixcks Web server => Apache 1.3.x
2012.10.22 17:54 flop25 Status new => closed
2012.10.22 17:54 flop25 Resolution open => fixed
2012.10.22 17:54 flop25 Fixed in Version => 2.4.0


Copyright © 2000 - 2019 MantisBT Team
Contact
Powered by Mantis Bugtracker