Commit 1aaf27f7 authored by jan.koester's avatar jan.koester
Browse files

test

parent 26951cad
Loading
Loading
Loading
Loading
+1 −1
Changes for src/session.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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);
        }
    }