Ignore:
Timestamp:
01/08/10 16:23:27 (14 years ago)
Author:
amuller
Message:

Ticket #597 - Correçao de caracteres especiais em nomes de arquivos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/filemanager/inc/class.vfs_functions.inc.php

    r1924 r1929  
    8787                                'messages'      => array('messages'     => ''), 
    8888                                'comment'       => array('comment' => ''), 
     89                                'from'  => array('from' => ''), 
     90                                'fileman' => array('fileman' => ''), 
    8991                                'to'    => array('to' => '') 
    9092                        ); 
     
    104106                                                                if(is_int($varkey)) 
    105107                                                                { 
    106                                                                         $temp[$varkey] = stripslashes(base64_decode(urldecode(($varvalue)))); 
     108                                                                        $temp[$varkey] = stripslashes(base64_decode($varvalue)); 
    107109                                                                } 
    108110                                                                else 
    109111                                                                { 
    110                                                                         $temp[stripslashes(base64_decode(urldecode(($varkey))))] = $varvalue; 
     112                                                                        $temp[stripslashes(base64_decode($varkey))] = $varvalue; 
    111113                                                                } 
    112114                                                        } 
     
    115117                                                elseif(isset($$var)) 
    116118                                                { 
    117                                                         $this->$var = stripslashes(base64_decode(urldecode($$var))); 
     119                                                        $this->$var = stripslashes(base64_decode($$var)); 
    118120                                                } 
    119121                                        } 
     
    244246         
    245247                function delete(){ 
    246                         foreach($this->fileman as $filecode) 
    247                         { 
    248                                 $filename = base64_decode($filecode); 
     248                        foreach($this->fileman as $filename) 
     249                        { 
    249250                                if($this->verifyLock($filename,RELATIVE_ALL) && $this->bo->vfs->rm(array( 
    250251                                        'string' => $this->path.'/'.$filename, 
     
    262263                } 
    263264                function archive(){ 
    264                         foreach($this->fileman as $filecode) 
    265                         { 
    266                                 $filename = base64_decode($filecode); 
     265                        foreach($this->fileman as $filename) 
     266                        { 
    267267                                if(!$this->verifyLock($filename,RELATIVE_ALL)) 
    268268                                { 
     
    355355                        else 
    356356                        { 
    357                                 $this->from = base64_decode($this->from); 
    358357                                while(list($num, $file) = each($this->fileman)) 
    359358                                { 
     
    386385                        else 
    387386                        { 
    388                                 $this->from = base64_decode($this->from); 
    389387                                while(list($num, $file) = each($this->fileman)) 
    390388                                { 
Note: See TracChangeset for help on using the changeset viewer.