decode percent encoded URIs

This commit is contained in:
badaix 2016-02-08 21:49:02 +01:00
parent cf628bfcd6
commit 538352fbf2
4 changed files with 31 additions and 8 deletions

View file

@ -33,12 +33,12 @@ Log::Log(std::string ident, int facility)
std::string Log::Timestamp()
{
struct tm * dt;
char buffer [30];
struct tm * dt;
char buffer [30];
std::time_t t = std::time(nullptr);
dt = localtime(&t);
strftime(buffer, sizeof(buffer), "%Y-%m-%d %H-%M-%S", dt);
return std::string(buffer);
dt = localtime(&t);
strftime(buffer, sizeof(buffer), "%Y-%m-%d %H-%M-%S", dt);
return std::string(buffer);
}