Changeset 304

Show
Ignore:
Timestamp:
02/28/07 16:48:32 (2 years ago)
Author:
mikey
Message:

fix problems with partly url encoded paths

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/star/StarStreamWrapper.php

    r235 r304  
    154154        $this->parsePath($path); 
    155155        $current = self::acquire($this->archive); 
    156         return isset($current['index'][$this->id]); 
     156        if (isset($current['index'][$this->id]) == false) { 
     157            $this->parsePath(urldecode($path)); 
     158            $current = self::acquire($this->archive); 
     159            if (isset($current['index'][$this->id]) == false) { 
     160                return false; 
     161            } 
     162        } 
     163         
     164        return true; 
    157165    } 
    158166     
     
    214222 
    215223        if (isset($current['index'][$this->id]) == false) { 
    216             return false; 
     224            $this->parsePath(urldecode($path)); 
     225            $current = self::acquire($this->archive); 
     226            if (isset($current['index'][$this->id]) == false) { 
     227                return false; 
     228            } 
    217229        } 
    218230