Changeset 15198 for gsdl/trunk/src/oaiservr/metaformatsaction.cpp
- Timestamp:
- 2008-04-17T13:52:05+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/oaiservr/metaformatsaction.cpp
r9608 r15198 5 5 bool metaformatsaction::validateAction(recptproto *protocol, oaiargs ¶ms) 6 6 { 7 int params_size = params.getSize(); 8 9 // Remove any parameters that aren't valid for this action 10 text_tmap::const_iterator param_iterator = params.begin(); 11 while (param_iterator != params.end()) 12 { 13 if (param_iterator->first != "verb" && 14 param_iterator->first != "identifier") 15 { 16 params.erase(param_iterator->first); 17 } 18 19 param_iterator++; 20 } 21 7 22 int numArgs = 1; // the number of expected arguments 8 23 … … 15 30 // If the total number of params isn't equal to the number of valid 16 31 // args (i.e. we have an arg but it isn't the identifier), throw an error 17 if((params .getSize()!= numArgs)){32 if((params_size != numArgs)){ 18 33 this->errorType = "badArgument"; 19 34 return false;
Note:
See TracChangeset
for help on using the changeset viewer.