Changeset 1080
- Timestamp:
- 12/08/07 09:04:53 (5 years ago)
- Files:
-
- 1 modified
-
coldbox/trunk/src/system/interceptors/ses.cfc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
coldbox/trunk/src/system/interceptors/ses.cfc
r1078 r1080 30 30 /* Verify the properties */ 31 31 if( not propertyExists('configFile') ){ 32 throw('The configFile property has not been defined. Please define it.','','interceptors.ses. configFilePropertyNotDefined');32 throw('The configFile property has not been defined. Please define it.','','interceptors.ses.invalidPropertyException'); 33 33 } 34 34 … … 201 201 <cfset var requestString = arguments.action /> 202 202 <cfset var routeParams = arrayNew(1) /> 203 <cfset var routeParamsLength = 0> 203 204 <cfset var thisRoute = structNew() /> 204 205 <cfset var thisPattern = "" /> … … 211 212 <cfset var rc = event.getCollection()> 212 213 <cfset var _courses = get_courses()> 214 <cfset var _coursesLength = ArrayLen(_courses)> 213 215 214 216 <!--- fix URL variables (IIS only) ---> … … 232 234 <!--- Compare route to URL ---> 233 235 <!--- For each route in config ---> 234 <cfloop from="1" to="# arrayLen(_courses)#" index="i">236 <cfloop from="1" to="#_coursesLength#" index="i"> 235 237 <cfset arrayClear(routeParams) /> 236 238 <cfset thisRoute = _courses[i] /> … … 258 260 259 261 </cfloop> 262 260 263 <!--- Populate the params structure with the proper parts of the URL ---> 261 <cfloop from="1" to="#arrayLen(routeParams)#" index="i"> 264 <cfset routeParamsLength = arrayLen(routeParams)> 265 <cfloop from="1" to="#routeParamsLength#" index="i"> 262 266 <cfset "params.#routeParams[i]#" = mid(requestString,match.pos[i+1],match.len[i+1]) /> 263 267 </cfloop>
