Skip to content

Commit 6a5113d

Browse files
author
Till Brehm
committed
Merge branch 'stable-3.0.5' of git.ispconfig.org:ispconfig/ispconfig3 into stable-3.0.5
2 parents 1e6ea5a + 9ae8653 commit 6a5113d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

interface/lib/classes/listform.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ private function getDatasourceData($field)
9797
$querystring = str_replace("{AUTHSQL}", $app->tform->getAuthSQL('r'), $querystring);
9898
$querystring = str_replace("{AUTHSQL-A}", $app->tform->getAuthSQL('r', 'a'), $querystring);
9999
$querystring = str_replace("{AUTHSQL-B}", $app->tform->getAuthSQL('r', 'b'), $querystring);
100+
$querystring = preg_replace_callback('@{AUTHSQL::(.+?)}@', create_function('$matches','global $app; $tmp = $app->tform->getAuthSQL("r", $matches[1]); return $tmp;'), $querystring);
100101

101102
//* Getting the records
102103
$tmp_records = $app->db->queryAllRecords($querystring);

interface/lib/classes/session.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function write ($session_id, $session_data) {
9999
$date_created = date('Y-m-d H:i:s');
100100
$last_updated = date('Y-m-d H:i:s');
101101
$session_data = $this->db->quote($session_data);
102-
$sql = "INSERT INTO sys_session (session_id,date_created,last_updated,session_data,permanent) VALUES ('$session_id','$date_created','$last_updated','$session_data','" . ($this->permanent ? 'y' : 'n') . "')";
102+
$sql = "REPLACE INTO sys_session (session_id,date_created,last_updated,session_data,permanent) VALUES ('$session_id','$date_created','$last_updated','$session_data','" . ($this->permanent ? 'y' : 'n') . "')";
103103
$this->db->query($sql);
104104

105105
} else {

0 commit comments

Comments
 (0)