4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 20, 2018, 09:37:10 PM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Help / Hilfe
| |-+  Bug Fixes & Patches
| | |-+  [1.7 / 1.7.1] Security fix in sessions.php
| | | |-+  Message #55381
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: «« « 1 2 3 4 [5] Print
Author Topic: [1.7 / 1.7.1] Security fix in sessions.php  (Read 224027 times)
TheOracle
Hero Member
*****
Offline Offline

Posts: 875

Thank You
-Given: 0
-Receive: 3


View Profile
« Reply #60 on: December 25, 2005, 01:48:10 PM »

In your includes/sessions.php file,

find :

Quote  [Expand]

$this->delete_old_sessions();


and the line right below is the one you're looking for - which should be

this one :

Quote  [Expand]

$user_id = ($this->read_cookie_data("userid")) ? ...


replace that entire line

with this one :

1
2
3

$user_id = ($this->read_cookie_data("userid")) ? intval($this->read_cookie_data("userid")) : GUEST;


Merry Christmas.
Logged
Pages: «« « 1 2 3 4 [5] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.05 seconds with 20 queries.