--- smsdaemon/plugins/UrlTriggerPlugin.cpp 2008/12/18 06:47:26 195 +++ smsdaemon/plugins/UrlTriggerPlugin.cpp 2008/12/18 06:53:29 196 @@ -12,8 +12,8 @@ using namespace std; UrlTriggerPlugin::UrlTriggerPlugin(string cmd, string url) - : Plugin(cmd, string("URL Trigger:")+url ), - command(cmd), URL(url) + : Plugin(cmd, string("URL Trigger:")+url ), + command(cmd), URL(url) { } @@ -25,12 +25,15 @@ request << "data=" << HttpClient::UrlEncode(sms.ExtractParameters()); string reply; - try { + try + { reply = HttpClient::GetString( request.str() ); reply = Util::str_replace(reply, "\r"); //remove carriage return if (reply == "") reply = "Empty reply from server !?!"; - } catch (httpexception& e) { + } + catch (httpexception& e) + { reply = "Error: Could not execute command"; Logger::logMessage(string("UrlTrigger failed: ") + command + ">" + e.what() ); }