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/fuseboxPlugin.cfc

    r292 r294  
    110110                                                                                                                this.path,arguments.fbApp.getApplicationRoot()) /> 
    111111                        </cfif> 
    112                         <!--- remove pairs of directory/../ to form canonical path: ---> 
    113                         <cfloop condition="find('/../',this.rootpath) gt 0"> 
    114                                 <cfset this.rootpath = REreplace(this.rootpath,"[^\.:/]*/\.\./","") /> 
    115                         </cfloop> 
     112                         
     113                        <cfset this.rootpath = arguments.fbApp.getCanonicalPath(this.rootpath) /> 
    116114                         
    117115                        <cfset variables.parameters = arguments.pluginXML.xmlChildren />