--- trunk/tntnet/dynamic/adm_customer_edit.ecpp 2007/11/28 23:19:28 90 +++ trunk/tntnet/dynamic/adm_customer_edit.ecpp 2007/11/29 07:34:54 93 @@ -30,7 +30,10 @@ <{ if (userName.size() == 0) +{ reply.setHeader("Refresh", "0; url=login"); + return HTTP_OK; +} if (id == -1) reply.out() << "

New Customer

\n"; @@ -47,10 +50,10 @@ std::string submit = qparam.param("submit"); if (submit == "1") { - std::string form_name = qparam.param("name"); - std::string form_address = qparam.param("address"); - std::string form_phone = qparam.param("phone"); - std::string form_contact = qparam.param("contact"); + std::string form_name = trim(qparam.param("name")); + std::string form_address = trim(qparam.param("address")); + std::string form_phone = trim(qparam.param("phone")); + std::string form_contact = trim(qparam.param("contact")); if (id == -1)