fixed: permissions to symlinks and directories with redirect flag were incorrectly checked
(there was no session set and the request was treated the same as from a not logged user) fixed: in BaseThread there was used 'log' in the main thread (this logger is only for the other thread) added: in BaseThread we have a main_log now - logger which puts to the main log buffer from the main thread git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1182 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008-2018, Tomasz Sowa
|
||||
* Copyright (c) 2008-2019, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -62,7 +62,6 @@ public:
|
||||
SessionManager();
|
||||
|
||||
void SetCur(Cur * pcur);
|
||||
void SetConfig(Config * pconfig);
|
||||
void SetSystem(System * psystem);
|
||||
void SetLastContainer(LastContainer * plast_container);
|
||||
|
||||
@@ -71,7 +70,12 @@ public:
|
||||
// can return a null pointer
|
||||
Session * FindSession(long id);
|
||||
|
||||
void PrepareSession();
|
||||
Session * PrepareSession();
|
||||
|
||||
// some functions require a session (need_session flag) so if there was
|
||||
// a temporary session and a function requires a session then we create a new session
|
||||
Session * CheckIfFunctionRequireSession();
|
||||
|
||||
void DeleteSessions(); // deleting all sessions
|
||||
bool ChangeSessionId(long old_id);
|
||||
|
||||
@@ -108,7 +112,6 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
Config * config;
|
||||
Cur * cur;
|
||||
System * system;
|
||||
LastContainer * last_container;
|
||||
@@ -133,7 +136,7 @@ private:
|
||||
void SetFirstExpirationTime(IPBan * ip_ban);
|
||||
void BrokenCookieCheckBan();
|
||||
void IncorrectSessionCheckBan();
|
||||
bool ShouldNoSessionCookieGenerateTmpSession();
|
||||
void NoSessionCookieWasSent();
|
||||
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user