diff options
author | Kenneth Skovhede <kenneth@hexad.dk> | 2015-03-07 14:46:02 +0300 |
---|---|---|
committer | Kenneth Skovhede <kenneth@hexad.dk> | 2015-03-07 14:46:02 +0300 |
commit | 80378ae1cc8c5ae8328c49e310954e3c7e85e4df (patch) | |
tree | 58d3d47cadc2f8e37b75bd0e07d7a34185bf9442 | |
parent | 1a0daa55a194e7b081af6e5f99fbfe9cc8fdb82a (diff) |
Fixed expiry with XSRF token.
This fixes #1319.
-rw-r--r-- | Duplicati/Server/WebServer/AuthenticationHandler.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Duplicati/Server/WebServer/AuthenticationHandler.cs b/Duplicati/Server/WebServer/AuthenticationHandler.cs index df0bbc352..17642431f 100644 --- a/Duplicati/Server/WebServer/AuthenticationHandler.cs +++ b/Duplicati/Server/WebServer/AuthenticationHandler.cs @@ -108,12 +108,12 @@ namespace Duplicati.Server.WebServer if (m_activexsrf.ContainsKey(value))
{
- m_activexsrf[value] = DateTime.Now.AddMinutes(XSRF_TIMEOUT_MINUTES);
+ m_activexsrf[value] = DateTime.UtcNow.AddMinutes(XSRF_TIMEOUT_MINUTES);
return true;
}
else if (m_activexsrf.ContainsKey(Library.Utility.Uri.UrlDecode(value)))
{
- m_activexsrf[Library.Utility.Uri.UrlDecode(value)] = DateTime.Now.AddMinutes(XSRF_TIMEOUT_MINUTES);
+ m_activexsrf[Library.Utility.Uri.UrlDecode(value)] = DateTime.UtcNow.AddMinutes(XSRF_TIMEOUT_MINUTES);
return true;
}
|