Plugin Directory

Changeset 1271429


Ignore:
Timestamp:
10/23/2015 01:01:10 AM (10 years ago)
Author:
hitoy
Message:

bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • super-static-cache/trunk/super-static-cache.php

    r1269078 r1271429  
    338338                        //对缓存文件的权限进行更改
    339339                        $relauri=substr($filename,strlen($this->wppath)-1);
    340                         preg_match("/^\/([^?]+)?/i",$relauri,$match);
    341                         $realname=!empty($match[1])?urldecode($match[1]):"";
     340                        preg_match("/^\/(super-static-cache\/)?(.*)$/i",$relauri,$match);
     341                        $realname=!empty($match[2])?$match[2]:"";
    342342                        $relapath=substr($realname,0,strpos($realname,'/'));
    343343                        if($relapath==""){
    344344                            chmods($filename,0777,0666,false);
    345                         }else if($relapath != "" && $this->cachemod == "direct"){
     345                        }else if($this->cachemod == "direct"){
    346346                            chmods($this->wppath.$relapath,0777,0666,true);
    347                         }else if($relapath != "" && $this->cachemod == "serverrewrite" || $this->cachemod == "phprewrite"){
     347                        }else if($this->cachemod == "serverrewrite" || $this->cachemod == "phprewrite"){
    348348                            chmods($this->wppath."super-static-cache/".$relapath,0777,0666,true);
    349349                        }
Note: See TracChangeset for help on using the changeset viewer.