2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Defined method name in XmlRpcMethod subclasses.
	* src/XmlRpcMethodFactory.cc
	* src/XmlRpcMethodImpl.cc
	* src/XmlRpcMethodImpl.h
	* test/XmlRpcMethodTest.cc
This commit is contained in:
Tatsuhiro Tsujikawa 2009-12-26 13:07:27 +00:00
parent af20aea88c
commit 1c331e901a
5 changed files with 178 additions and 56 deletions

View file

@ -844,7 +844,7 @@ BDE SystemMulticallXmlRpcMethod::process
continue;
}
const std::string& methodName = (*i)[KEY_METHOD_NAME].s();
if(methodName == "system.multicall") {
if(methodName == getMethodName()) {
list << createErrorResponse
(DL_ABORT_EX("Recursive system.multicall forbidden."));
continue;