diff options
author | mistic100 <mistic@piwigo.org> | 2011-12-19 17:08:49 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2011-12-19 17:08:49 +0000 |
commit | 4bbd5f66492997cc49276034949a5f984ef6351d (patch) | |
tree | 39ff197c1c7c0b667943ea0a0296ff7c63a9417e /include/functions_session.inc.php | |
parent | 5470df353ab58a5a4664453f2eb29febed15fbb6 (diff) |
feature:2538 transmits messages after comment edition trough SESSION (no more ugly url displayed, avoid some minor bugs)
git-svn-id: http://piwigo.org/svn/trunk@12767 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_session.inc.php')
-rw-r--r-- | include/functions_session.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions_session.inc.php b/include/functions_session.inc.php index 411b374bf..b4ee2d183 100644 --- a/include/functions_session.inc.php +++ b/include/functions_session.inc.php @@ -141,7 +141,7 @@ function pwg_session_write($session_id, $data) $query = ' REPLACE INTO '.SESSIONS_TABLE.' (id,data,expiration) - VALUES(\''.get_remote_addr_session_hash().$session_id.'\',\''.$data.'\',now()) + VALUES(\''.get_remote_addr_session_hash().$session_id.'\',\''.str_replace("'", "\'", $data).'\',now()) ;'; pwg_query($query); return true; |