# HG changeset patch # User Sebastien Jodogne # Date 1357652948 -3600 # Node ID 4564e908bba990bc24c07180ca9b1c8f83fa2074 # Parent e7276309b2692a5fa6388d9ba6f0c839c48fe9de handling of bad lexical casts in http server diff -r e7276309b269 -r 4564e908bba9 Core/HttpServer/MongooseServer.cpp --- a/Core/HttpServer/MongooseServer.cpp Tue Jan 08 10:02:21 2013 +0100 +++ b/Core/HttpServer/MongooseServer.cpp Tue Jan 08 14:49:08 2013 +0100 @@ -551,6 +551,11 @@ LOG(ERROR) << "MongooseServer Exception [" << e.What() << "]"; output.SendHeader(Orthanc_HttpStatus_500_InternalServerError); } + catch (boost::bad_lexical_cast&) + { + LOG(ERROR) << "MongooseServer Exception: Bad lexical cast"; + output.SendHeader(Orthanc_HttpStatus_500_InternalServerError); + } } else {