Loading src/session.cpp +1 −1 Changes for src/session.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -93,7 +93,7 @@ const std::string &blogi::Session::createSession(std::string &buf,const std::str // Note the different argument order and the required buffer size if (asctime_s(ttmp, sizeof(ttmp), &time_info) == 0) { // The rest of the code is portable sql << "INSERT INTO session (id,useragent,created) VALUES ('" << sessionid.c_str() << "','" << useragent << "','" << ttmp << "');"; sql << "INSERT INTO session (id,useragent,created) VALUES ('" << sessionid.c_str() << "','" << useragent.c_str() << "','" << ttmp << "');"; _sessiondb->exec(sql, res); } } Loading Loading
src/session.cpp +1 −1 Changes for src/session.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -93,7 +93,7 @@ const std::string &blogi::Session::createSession(std::string &buf,const std::str // Note the different argument order and the required buffer size if (asctime_s(ttmp, sizeof(ttmp), &time_info) == 0) { // The rest of the code is portable sql << "INSERT INTO session (id,useragent,created) VALUES ('" << sessionid.c_str() << "','" << useragent << "','" << ttmp << "');"; sql << "INSERT INTO session (id,useragent,created) VALUES ('" << sessionid.c_str() << "','" << useragent.c_str() << "','" << ttmp << "');"; _sessiondb->exec(sql, res); } } Loading