Skip to content

Commit

Permalink
refs #1062
Browse files Browse the repository at this point in the history
  * [6777/old_svn]을 1.7 트리에 반영
  • Loading branch information
inureyes committed Oct 6, 2008
1 parent 25df02f commit 15ac927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/session.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ function writeSession($id, $data) {
if( empty($userid) ) $userid = 'null';
$data = POD::escapeString($data);
$server = POD::escapeString($_SERVER['HTTP_HOST']);
$request = POD::escapeString($_SERVER['REQUEST_URI']);
$referer = isset($_SERVER['HTTP_REFERER']) ? POD::escapeString($_SERVER['HTTP_REFERER']) : '';
$request = POD::escapeString(substr($_SERVER['REQUEST_URI'],0,255));
$referer = isset($_SERVER['HTTP_REFERER']) ? POD::escapeString(substr($_SERVER['HTTP_REFERER'],0,255)) : '';
$timer = getMicrotimeAsFloat() - $sessionMicrotime;
$result = sessionQuery('count',"UPDATE {$database['prefix']}Sessions
SET userid = $userid, data = '$data', server = '$server', request = '$request', referer = '$referer', timer = $timer, updated = UNIX_TIMESTAMP()
Expand Down

0 comments on commit 15ac927

Please sign in to comment.