Browse Source

dont set type till its a valid type

pull/35/head
Harish Krishna 10 years ago
parent
commit
516722f8dc
  1. 1
      sanitiser/_id.js

1
sanitiser/_id.js

@ -30,7 +30,6 @@ function sanitize( req ){
if('string' !== typeof params.type || !params.type.length){ if('string' !== typeof params.type || !params.type.length){
return errormessage('type'); return errormessage('type');
} }
req.clean.type = params.type;
// type text must be one of the indeces // type text must be one of the indeces
if(indeces.indexOf(params.type) == -1){ if(indeces.indexOf(params.type) == -1){

Loading…
Cancel
Save