aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/session.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-03-25 12:07:13 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-03-25 12:07:13 +0000
commit5de37a5c0a9665ef7170c247a842d9cd38e9e1d3 (patch)
tree86fe422f5cf40ae9a669c8dca309e0e36ed214e7 /phpBB/includes/session.php
parent529aabd46d63b48041bde5d33fdb45bec63807cd (diff)
downloadforums-5de37a5c0a9665ef7170c247a842d9cd38e9e1d3.tar
forums-5de37a5c0a9665ef7170c247a842d9cd38e9e1d3.tar.gz
forums-5de37a5c0a9665ef7170c247a842d9cd38e9e1d3.tar.bz2
forums-5de37a5c0a9665ef7170c247a842d9cd38e9e1d3.tar.xz
forums-5de37a5c0a9665ef7170c247a842d9cd38e9e1d3.zip
- extended session_page and user_lastpage to hold a maximum of 200 chars (instead of 100) - session_page gets truncated to 200 chars
- streamlined the process of generating text with bbcode/smilies/urls (forum rules, forum descriptions, group descriptions at the moment) - a bunch of schema changes for the bbcode-enabled text and the session page change (sorry for this) - if decode_message is used there is no need to include functions_posting.php anymore (should fix the search.php bug too) git-svn-id: file:///svn/phpbb/trunk@5709 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/session.php')
-rw-r--r--phpBB/includes/session.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index 87169bacfc..25829d5186 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -183,7 +183,7 @@ class session
if ($this->time_now - $this->data['session_time'] > 60 || $this->data['session_page'] != $this->page['page'])
{
$sql = 'UPDATE ' . SESSIONS_TABLE . "
- SET session_time = $this->time_now, session_page = '" . $db->sql_escape($this->page['page']) . "'
+ SET session_time = $this->time_now, session_page = '" . $db->sql_escape(substr($this->page['page'], 0, 199)) . "'
WHERE session_id = '" . $db->sql_escape($this->session_id) . "'";
$db->sql_query($sql);
}
@@ -380,7 +380,7 @@ class session
'session_last_visit' => (int) $this->data['session_last_visit'],
'session_time' => (int) $this->time_now,
'session_browser' => (string) $this->browser,
- 'session_page' => (string) $this->page['page'],
+ 'session_page' => (string) substr($this->page['page'], 0, 199),
'session_ip' => (string) $this->ip,
'session_admin' => ($set_admin) ? 1 : 0,
'session_viewonline' => ($viewonline) ? 1 : 0,