File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,8 @@ module.exports = Class.extend(
171171 // Route based on an action first if we can
172172 if ( this . Class . actionRouting && typeof this . req . params !== 'undefined' && typeof this . req . params . action !== 'undefined' ) {
173173 // Action Defined Routing
174- if ( isNaN ( this . req . params . action ) ) {
174+ // Updated to consider ObjectId's as numbers for Mongo ids
175+ if ( ! / ^ [ 0 - 9 a - f A - F ] { 24 } $ / . test ( this . req . params . action ) && isNaN ( this . req . params . action ) ) {
175176 funcName = this . req . params . action + 'Action' ;
176177
177178 if ( typeof this [ funcName ] == 'function' ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " clever-controller" ,
33 "description" : " Lightning-fast flexible controller prototype" ,
4- "version" : " 1.1.2 " ,
4+ "version" : " 1.1.3 " ,
55 "private" : false ,
66 "repository" : {
77 "type" : " git" ,
You can’t perform that action at this time.
0 commit comments