Ticket #459: mach_ii_build_1978_html_helper_property_fix.patch

File mach_ii_build_1978_html_helper_property_fix.patch, 0.8 KB (added by doug.smith@…, 3 months ago)

Patch to fix this issue.

  • MachII/1.8.0.1978/properties/HtmlHelperProperty.cfc

     
    746746                        hint="An unresolved asset path to resolve to a full web-root path." /> 
    747747                 
    748748                <cfset var path = arguments.assetPath /> 
     749                <cfset var urlBase = getProperty("urlBase") /> 
    749750                 
    750751                <!--- Don't do resolution on assets that are dynamically served ---> 
    751                 <cfif NOT path.startsWith(getProperty("urlBase"))> 
     752                <cfif Len(urlBase) EQ 0 OR NOT path.startsWith(urlBase)> 
    752753                        <!--- Get path if the asset path is not a full path from webroot ---> 
    753754                        <cfif NOT path.startsWith("/")> 
    754755                                <cfif arguments.assetType EQ "js">