Show
Ignore:
Timestamp:
12/25/06 18:49:31 (2 years ago)
Author:
scorfield
Message:

Fixes #163 by creating a centralized function to canonicalize a path that actually does it correctly!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • framework/trunk/fuseboxCircuit.cfc

    r292 r294  
    6969                        </cfif> 
    7070                </cfif> 
    71                 <!--- remove pairs of directory/../ to form canonical path: ---> 
    72                 <cfloop condition="find('/../',variables.fullPath) gt 0"> 
    73                         <cfset variables.fullPath = REreplace(variables.fullPath,"[^\.:/]*/\.\./","") /> 
    74                 </cfloop> 
     71                 
     72                <cfset variables.fullPath = variables.fuseboxApplication.getCanonicalPath(variables.fullPath) /> 
     73 
    7574                <!--- 
    7675                        this was not correctly normalized prior to ticket 139 but it didn't really matter